PDA

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



owen100
10-01-2004, 10:38 AM
All of a sudden without me doing anything, my databases / MySQL stopped working.

I set up a forum and a CSM, both worked fine - went to eat and now I get the following error if a php script tries to access a database and also if I try to use phpMyAdmin




Error

MySQL said:


Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

visible soul
10-04-2004, 01:08 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


That happens to me almost every time I have a new domain pointed to my VDS. For some reason the mysql.sock just disappears!

Solution: Restart VDS and the file will be regenerated. Hopefully that will take care of your issue.

WestHost - MMellor
10-04-2004, 09:34 AM
Hello Owen,

Visible is right. That is the solution to the problem. If you want to PM me your domain, I will take a look at your account to make sure that everything else is running correctly. Thanks Visible for the help!