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

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

root5年前 (2021-04-13)数据库2406

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 的安装使用

安装centos系统 9.6版本# Install the repository RPMsudo yum install -y https://download.postgresql.org/pub/repos/yum/repor...

centos7 安装mysql

centos7 安装mysql

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

被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...

postgresql 查看数据库、表的大小

查看数据库的大小 select pg_database_size('test'); select pg_size_pretty(pg_database_size('test');查看单...

centos7 快速搭建 mysql

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