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
>>> 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.
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=1