数据库开启失败(MySQL“Another MySQL daemon already running with the same unix socket”的处理)

方法一:

rm var/lib/mysql/mysql.sock

service mysqld start

 

方法二:

mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak;

service mysqld start

 

 

虚拟机关机直接就断电,mysql的进程没有正常闭关就会这样!!

posted @ 2019-12-17 09:14  暮日温柔  阅读(...)  评论(...编辑  收藏