InnoDB: Error: page xxx log sequence number xx xxx InnoDB: is in the future! Current system log sequence number xx xxx.

背景

强kill卡顿MySQL实例


重启错误

InnoDB: Error: page xxx log sequence number xx xxx InnoDB: is in the future! Current system log sequence number xx xxx.


问题

MySQL强kill后起不来,应该是InnoDB日志损坏


解决

目前没找到简单的解决方法,所用方法:
配置文件设置 innodb_force_recovery = 6 重启mysql;(忽略错误重启,只读状态)
将所有数据 mysqldump 备份;
清空mysql数据、日志文件,重做mysql;(删除ib* 文件,其中ibdata1是InnoDB数据文件,须确保数据已备份,重启后再手动删除库,不然会存在mysql记录库表信息冲突错误)
再将备份数据导入;


参考:

MySQL InnoDB 错误:”log sequence number is in the future”

原文地址:https://www.cnblogs.com/GO-NO-1/p/12666998.html