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

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

root4年前 (2021-04-13)数据库1913

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

分享给朋友:

相关文章

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

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

postgresql 导入导出sql 文件

pg_dump  -h localhost -U postgres -t tablename databasename >./test.sql导出 -t 表名  psql -d test1 -U...

centos7 安装mysql

centos7 安装mysql

下载rpm包wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 安裝包仓库yum -y install * 或者yum -...

postgresql修改数据存储位置

postgresql修改数据存储位置

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

被Navicat坑哭的日常,版本问题

mysql5.7DROP TABLE IF EXISTS `xxx_copy1`;CREATE TABLE `xxx_copy1`  (  `id` int(11) UNSIGNED NOT NULL AUTO_INCR...

清空postgresql的缓存

系统:centos,版本:postgresql-9.6因为要测试postgresql的性能,当多次查询的时候查询结果会因为缓存用时很短,不能模拟出现实使用的场景。因此需要清除缓存。首先stop掉postgresqlsystemctl sto...