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
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
") 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
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]...
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
> 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
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
$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
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
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
10 matches
Mail list logo