mysql掉电后重启失败问题

报错


2022-12-07T01:41:02.844533Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 265368743141 and the end 265368742912.
2022-12-07T01:41:02.844551Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2022-12-07T01:41:03.445579Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2022-12-07T01:41:03.445613Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2022-12-07T01:41:03.445624Z 0 [ERROR] Failed to initialize builtin plugins.
2022-12-07T01:41:03.445640Z 0 [ERROR] Aborting

2022-12-07T01:41:03.445723Z 0 [Note] Binlog end
2022-12-07T01:41:03.445810Z 0 [Note] Shutting down plugin 'CSV'
2022-12-07T01:41:03.446170Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

 

解决方法

  1. Set innodb_log_checksums = ON on master and slave.
  2. Remove rm /var/lib/mysql/ib_logfile*.
  3. Restart.
  4. remove innodb_log_checksums = ON  from my.conf
  5. Restart

posted on 2022-12-07 10:38  cococooder  阅读(176)  评论(0编辑  收藏  举报