PDA

View Full Version : Can't connect to local MySQL server....


Laguna
Wed 7th May '03, 2:40pm
Error message I'm getting after my server was rebooted:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in /home/laguna/public_html/forums/admin/db_mysql.php on line 40


I've verified that mysqld is running as outlined in a similar thread from 3 days ago. It is running.

www.offcamber.net/phpinfo.php

Error message is at www.offcamber.net/forums/admin


Thanks for any help...

Steve Machol
Wed 7th May '03, 3:00pm
This error means either MySQL crashed, it's not running or it can't find the socket. You need to contact your host about this. Here is more info on this error:

http://www.mysql.com/doc/C/a/Can_not_connect_to_server.html

Laguna
Wed 7th May '03, 3:03pm
Thanks. Must've been my host, as the server dropped again and when it came back up, mysql began working again. I feel better.