php-mysql connectivity problem
| From: | Vu Hoang Huynh | Date: | Mon, 07 Jan 2002 02:57:00 +0000 |
| Subject: | php-mysql connectivity problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79636@lists.php.net to get a copy of this message | ||
Hi all,
I'm a newbie to PHP and mySQL and I'm currently running PHP+mySQL on my
Linux 2.2.16 kernel. Every time I try to connect to mySQL from a php page, I
get this error message:
ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mys
ql.sock' (111)
FYI: mysqld was running, and I use the following function
in the php script to access mysql database
$db = mysql_connect("localhost","username","password");
What does that mean and how do I go about solving it?
Thanks in advance for your directions and have a great new year.
Best regards,