[Problem] - Cannot restart mysql

lossehelin

Regular Member
Joined
May 23, 2009
Messages
204
Reaction score
43
This is to all fellow bhw owners of vps and servers.

I have a vps which has been working fine till today. I noticed that my sites couldn't connect to mysql. Went to my shell and i see the processes are not running. I try to restart mysql but keeps saying FAIL.

I noticed that the mysql.sock file is not present.
Any suggestions?
 
Rename your current my.cnf file. (Actual path will be /etc/my.cnf) to say my.cnf-BAK and try restarting Mysql.

Even if it do not works then open that my.cnf file and add following line

socket=/var/lib/mysql/mysql.sock

I hope this will resolve your problem.
 
Last edited:
thanks for the input but that didn't work.

i already had socket=/var/lib/mysql/mysql.sock in the my.cnf though
 
Back
Top