Yeah I thought so to. But I did a chmod 755 on the sock file and it
didn't help.

Here's the test script I am using: (Presume that's what you meant by
"connection string"?


        if($Connection = mysql_connect('localhost', '******', '******'))
                print 'Success!';
                print 'Failure';


-----Original Message-----
From: Jay Blanchard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 9:44 AM
To: Donald Tyler; [EMAIL PROTECTED]
Subject: RE: [PHP] mysql.sock file location

Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13) in
/usr/local/apache2/htdocs/dbtest.php on line 3

Can we see your connection string? My bet would be permissions...

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to