mysql无法启动,日志文件显示“Ignoring the redo log”

今天突然遇到mysql无法启动的问题,系统是Centos7.
systemctl start mysqld 显示

Starting mysqld (via systemctl): Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details、 [FAILED]

提示是用 systemctl status mysqld 查看,但是查看了基本没有什么有用的信息,然后看了下mysql的日志,发现是报下面的错误

[ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT.
[ERROR] InnoDB: Plugin initialization aborted with error Generic error
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Failed to initialize builtin plugins.
[ERROR] Aborting

百度了一下发现,把mysql数据文件夹下的ib_logfile0ib_logfile1这两个文件删除就可以了。

你可能感兴趣的:(mysql无法启动,日志文件显示“Ignoring the redo log”)