|
Posted by Michael on 12/28/05 01:42
Hi,
I'm trying to do something which should be very simple - connect to the
MySQL database. Here is the call, followed by the error msg.
$conn = mysql_connect("localhost", "root", "");
Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/buildhw.php on
line 13
failed
I've also tried this with the host arg as "", but I get the same
result. Logging on as root made no difference either.
Any help would be very much appreciated.
Thanks,
M. McDonnell
[Back to original message]
|