List:General Discussion« Previous MessageNext Message »
From:Daniel Rossi Date:August 22 2003 2:18am
Subject:Re: PHP mysql_connect randomly failing
View as plain text  
funny i was just having the same problemo with mysql 3.22 on php3 the most painful system
to debug i hate it to bits, anyway mysql_error doesnt get returned on permission or
database connection errors, i wonder if that is soughted out in mysql4 ?? maybe this is a
php.net question

>>> Jon Drukman <jsd@stripped> 08/22/03 11:18am >>>
Antony Dovgal wrote:
>>mysql_error is not set when mysql_connect fails, because there is no 
>>actual mysql resource to get the error message from.
> 
> yes, there is no mysql resource at this moment.
> just don't specify it and mysql_error() will tell something like "Can't connect to
> local MySQL server through socket '/tmp/mysql.sock' (111)".

that is true, but in this case, neither $php_errmsg nor mysql_error() 
return anything.  i print them both out when the connect fails and they 
are both just blank.

-jsd-




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql 
To unsubscribe:    http://lists.mysql.com/mysql?unsub=1 


Thread
PHP mysql_connect randomly failingJon Drukman19 Aug
  • RE: PHP mysql_connect randomly failingMichael S. Fischer20 Aug
    • Re: PHP mysql_connect randomly failingJon Drukman20 Aug
  • Re: PHP mysql_connect randomly failingAntony Dovgal20 Aug
    • Re: PHP mysql_connect randomly failingJon Drukman21 Aug
      • Re: PHP mysql_connect randomly failingAntony Dovgal21 Aug
        • Re: PHP mysql_connect randomly failingJon Drukman22 Aug
          • Re: PHP mysql_connect randomly failingAntony Dovgal22 Aug
            • Re: PHP mysql_connect randomly failingJon Drukman22 Aug
              • Re: PHP mysql_connect randomly failingRajesh Kumar23 Aug
      • Re: PHP mysql_connect randomly failingQWERTY21 Aug
Re: PHP mysql_connect randomly failing(Daniel Rossi)22 Aug
Re: PHP mysql_connect randomly failingAntony Dovgal22 Aug