mysql启动报错:Starting MySQL...The server quit without updating PID file

在mysql的data目录下误删除了mysql-bin.000001,mysql-bin.000002等文件,但是没有删除mysql-bin.index文件,此时启动mysql就会报错:

Starting MySQL...The server quit without updating PID file (/alidata/server/mysql/data/iZ28f2w1yzyZ.pid).

解决方法:删除data目录下的mysql-bin.index文件,即可启动mysql,同时还会再自动生成新的mysql-bin.000001文件。

上一篇:03_生产者-客户端开发


下一篇:Starting MySQL...The server quit without updating PID file