公司的服务器突然断电了,恢复后重启mysql报错如下
Starting MySQL... ERROR! The server quit without updating PID file (/usr/local/mysql/data/test.pid)
查阅多方资料后,采用了如下的操作解决问题:
1、切换到/var/lib/mysql目录下
cd /var/lib/mysql
2、删除或移动该目录下的文件
rm -rf ./*
3、启动mysql
service mysql start
图例:
参考链接: