宝塔面板数据库报错:ERROR! MySQL server PID file could not be found!
客户因给服务器清理日志、不清楚具体操作了什么 ,清理完成以后,数据库启动不了。报错如下:
[root@VM-0-5-centos ~]# /etc/init.d/mysqld restart
ERROR! MySQL server PID file could not be found!
Starting MySQL.... ERROR! The server quit without updating PID file (/www/server/data/VM-0-5-centos.pid).
多次排查 :MySQL日志文件找不到或者损坏。
解决方案:
- /etc/init.d/mysqld stop
- rm -f /www/server/data/ib_logfile*
- rm -f /www/server/data/mysql-bin.*
- /etc/init.d/mysqld start