当前位置:首页 > 数据库 > 正文内容

mysql启动失败 日志InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 3485

root3年前 (2021-04-13)数据库1450

mysql报错Ignoring the redo log due to missing MLOG_CHECKPOINT between

mysql版本:5.7.33

系统版本:ubuntu16.04

由于电脑突然关闭,跑在VMware里面的mysql在重启电脑后启动失败

错误日志:

2021-04-13T00:40:53.314298Z 0 [Note] InnoDB: Highest supported file format is Barracuda.

2021-04-13T00:40:53.315330Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 3485392909 and the end 3485392896.

2021-04-13T00:40:53.315377Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error

2021-04-13T00:40:53.920349Z 0 [ERROR] Plugin 'InnoDB' init function returned error.

2021-04-13T00:40:53.920553Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

2021-04-13T00:40:53.920580Z 0 [ERROR] Failed to initialize builtin plugins.

2021-04-13T00:40:53.920591Z 0 [ERROR] Aborting


2021-04-13T00:40:53.920605Z 0 [Note] Binlog end

2021-04-13T00:40:53.921875Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

解决办法有两个

第一个

设置innodb_force_recovery=6,然后启动mysql,能够顺利启动mysql

由于损坏的这个库是从库,所以显示无法初始化master info表

由于mysql库里有几个表都显示找不到表空间,那么会存在丢失数据的风险

第二个

把实例的所有ib_logfilex文件删除,再启动mysql,能够顺利启动

  1. Set innodb_log_checksums = ON on master and slave.

  2. Remove rm /var/lib/mysql/ib_logfile*.

  3. Restart.

参考


扫描二维码推送至手机访问。

版权声明:本文由一叶知秋发布,如需转载请注明出处。

本文链接:https://zhiqiu.top/?id=94

分享给朋友:

相关文章

postgresql修改数据存储位置

postgresql修改数据存储位置

最近公司提供了一台新的服务器,同时有一个盘是ssd。同时为了测试postgresql的性能,将数据放置到ssd上系统centos7.9 数据库postgresql-9.6首先停掉数据库systemctl stop pos...

mysql 重置表

truncate table 表名...

centos7 快速搭建 mysql

https://blog.csdn.net/qq_36582604/article/details/80526287...

mysql 主键 用int还是long 还是char?有什么区别

char是定长0-255 bytes longtext是0-4 294 967 295 bytes 极大文本数据longblob是二进制形式的极大文本数据...

电脑断电导致mysql不可用,删除ib_logfile0和ib_logfile1恢复

mysql安装在虚拟机中,公司突然断电导致mysql启动失败查看mysql的error日志2021-05-19T06:44:51.993300Z 0 [ERROR] InnoDB: Ignoring the redo log due to...

mysql 临时表和复制表

创建临时表CREATE TEMPORARY TABLE SalesSummary  (product_name VARCHAR(50) NOT NULL, ...