can't connect to local mysql server through socket

本来用的好好的mysql今天打开突然就隔屁了, 错误: can't connect to local mysql server through socket '/tmp/mysql.socket'(2). 最后发现原来是mysql进程卡死了, 先杀死所有mysql进程, 然后重启就ok了.

# ps aux|grep mysql      // 找到所有mysql进程

# kill pid    // 杀死所有进程

# /etc/init.d/mysqld start    //启动进程

ok!!!!!

你可能感兴趣的:(can't connect to local mysql server through socket)