Can't connect to local MySQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 $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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux