RE: [PHP] mysql.sock file location

From: Date: Thu, 25 Sep 2003 15:01:47 +0000
Subject: RE: [PHP] mysql.sock file location
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-163915@lists.php.net to get a copy of this message
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"? <?PHP if($Connection = mysql_connect('localhost', '******', '******')) print 'Success!'; else print 'Failure'; ?> -----Original Message----- From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com] Sent: Thursday, September 25, 2003 9:44 AM To: Donald Tyler; php-general@lists.php.net Subject: RE: [PHP] mysql.sock file location [snip] 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 [/snip] Can we see your connection string? My bet would be permissions...

« previous php.general (#163915) next »