Mysql 发生套接字故障

Mysql has a socket failure

mysql 当前显示

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

当我现在尝试登录时。有人有解决办法吗?

尝试使用(这可能取决于您的 OS)

终止套接字
rm /var/lib/mysql/mysql.sock
rm: remove socket `/var/lib/mysql/mysql.sock'? y

重启服务

service mysqld start