Re: mysql_connect(): '/tmp/mysql.sock' error
| From: | Didier McGillis | Date: | Thu, 26 Jun 2003 12:39:50 +0000 |
| Subject: | Re: mysql_connect(): '/tmp/mysql.sock' error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152974@lists.php.net to get a copy of this message | ||
What has always worked for me was to make sure MySQL is running, and if so then go delete the mysql.sock file and restart MySQL, not sure why but the first couple of times I have seen that error, usually goes away after one or two restarts.
From: Jean-Christian IMbeault <jc@mega-bucks.co.jp> To: php-general@lists.php.net Subject: [PHP] mysql_connect(): '/tmp/mysql.sock' error Date: Thu, 26 Jun 2003 16:53:22 +0900 I've installed PHP from source and MySQL 4.0.9 from rpm on my RH 9 machine. When I try and connect from php using mysql_connect() I get the following error: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) The server is up and running and I can connect fine using the command line client. Do I need some special configuration? Any advice appriciated! Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php_________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail