netominas
By:
netominas

Can't connect to local MySQL server through socket

March 26, 2014 874 views
Yesterday my server was down and is now giving the following error message: "ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/ var / run / mysqld / mysqld.sock' (111)" Can anyone help me?
1 Answer
That means it crashed. Start it:
sudo service mysql start
And then check its error log for more info on why it crashed:
sudo tail -40 /var/log/mysql.err
Have another answer? Share your knowledge.