Can't connect to local MySQL
| From: | Jose | Date: | Thu, 20 Nov 2003 18:14:29 +0000 |
| Subject: | Can't connect to local MySQL | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-31671@lists.php.net to get a copy of this message | ||
$link = mysql_pconnect("localhost", "bm_user", "password") or
die("Could
not connect : " . mysql_error());
Return :
Could not connect : Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (13)
If I run
shell>mysql -h localhost -u bm_user -ppassword
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 29 to server version: 4.0.16-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
What is the problem?
Thank you
Jose.