宝塔面板数据库报错:ERROR! MySQL server PID file could not be found!

宝塔面板数据库报错: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

 

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容