Starting MySQL... ERROR! The server quit without updating PID file 问题解决

Posted 小猫钓鱼吃鱼

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Starting MySQL... ERROR! The server quit without updating PID file 问题解决相关的知识,希望对你有一定的参考价值。

今天遇到一个mysql起不来,不知为啥挂了,启动是下面的报错
Starting MySQL... ERROR! The server quit without updating PID file

后来进到/usr/local/mysql/var目录
打开err后缀的文件,其中有几句报错

/usr/local/mysql/bin/mysqld: File ‘./mysql-bin.065896‘ not found (Errcode: 2)
190215 18:58:04 [ERROR] Failed to open log (file ‘./mysql-bin.065896‘, errno 2)

然后当前目录的确是没有mysql-bin.065896这个文件,最多只到mysql-bin.065895
然后打开mysql-bin.index文件,最后一行是./mysql-bin.065896,然后我把这一行删了,重新启动,就可以了。
不清楚为什么会有这个不一致的问题,估计数据也有一点丢失,但是是自己玩的项目,就没深究了。

以上是关于Starting MySQL... ERROR! The server quit without updating PID file 问题解决的主要内容,如果未能解决你的问题,请参考以下文章

Starting MySQL... ERROR! The server quit without updating PID file 问题解决

MySQL 启动日志报错:Starting MySQL. ERROR! The server quit without updating PID file

mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql

Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdom

Starting MySQL.. ERROR! The server quit without updating PID file

Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19