The server quit without updating PID file (mysql.pid)一次意外mysql停止运行备忘录

时间:2022-11-13 15:11:13

The server quit without updating PID file (mysql.pid)一次意外mysql停止运行备忘录

[root@iZ23tsvd9h4Z ~]# service mysqld status
ERROR! MySQL (Percona Server) is not running, but lock file (/var/lock/subsys/mysql) exists
[root@iZ23tsvd9h4Z ~]# service mysqld start
Starting MySQL (Percona Server). ERROR! The server quit without updating PID file (/alidata/data/mysqldata/mysql.pid).

The server quit without updating PID file (mysql.pid)一次意外mysql停止运行备忘录

刚刚在写代码,突然同事问我数据库是不是被我停了,我说没,然后感觉查看无法连接了,于是登录服务器上检查,如上的错误日志,我觉得ib_logfile0,1 出现了不一致的问题,重启就会报错,启动不了,解决的方式是先备份日志文件,把它备份到别处然后删除,再次启动就OK了。希望能帮到遇到此问题的朋友