Re: [PHP] Re: Mysql DB connect failure

2003-02-23 Thread Sunfire
purposfully make an error: mysql_connect("localhost", "root", "")||die(mysql_error()); i get the message above about the error - Original Message - From: "Hans Prins" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003

Re[2]: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Tom Rogers
Hi, Saturday, February 22, 2003, 2:26:35 AM, you wrote: M> I see that its looking for mysql.sock in /tmp/mysql.sock M> but I searched on my system and only found mysql.sock in /var/lib/mysql/ M> is there a section where I need to change this setting? or a conf file? M> "Hans Prins" <[EMAIL PROT

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread ML
") or die(mysql_error()); > > - Original Message - > From: "ML" <[EMAIL PROTECTED]> > To: <> > Sent: Friday, February 21, 2003 9:33 AM > Subject: [PHP] Re: Mysql DB connect failure > > > Where exactly would I put the print mysql_erro

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread ML
I see that its looking for mysql.sock in /tmp/mysql.sock but I searched on my system and only found mysql.sock in /var/lib/mysql/ is there a section where I need to change this setting? or a conf file? "Hans Prins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread ML
You were right Prins, I got the error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) So I guess I need to investigate what this means now... Thanks! -ML "Hans Prins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Would you care t

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Hans Prins
> Would you care to explain to the rest of the list how you intend to use > mysql_error () to return connection failure information? > > It returns the text of the error message from previous MySQL operation > Description: string mysql_error ( [resource link_identifier]) > > Seems to me that withou

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Jason k Larson
Would you care to explain to the rest of the list how you intend to use mysql_error () to return connection failure information? It returns the text of the error message from previous MySQL operation Description: string mysql_error ( [resource link_identifier]) Seems to me that without a connect

Fw: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Rick Emery
$db = mysql_pconnect("localhost", "test1", "test1") or die(mysql_error()); - Original Message - From: "ML" <[EMAIL PROTECTED]> To: <> Sent: Friday, February 21, 2003 9:33 AM Subject: [PHP] Re: Mysql DB connect failure Where exactly wo

[PHP] Re: Mysql DB connect failure

2003-02-21 Thread ML
Where exactly would I put the print mysql_error() ? Here is the code... "); "Hans Prins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > did you try: > print mysql_error(); > > "Ml" <[EMAIL PROTECTED]> schreef in

[PHP] Re: Mysql DB connect failure

2003-02-21 Thread Hans Prins
did you try: print mysql_error(); "Ml" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Currently I have some php code that displays a message if a connect to my > database fails. Is there anyway I > can get a more descriptive error message? So I can see exactl