我正在处理一组非常大的数据库,这些数据库都是 innodb。
为了我的舒适,我在 mysql restart 上多次提到这个:
ibdata files do not match the log sequence number
但是,当该消息发生时,我已经清楚地看到 mysql 在重新启动之前正确关闭。
然后它“修复”到原始序列号,没有丢失任何东西。
永久处理和修复此问题的最佳方法是什么?
使用 Percona innodb_file_per_table=1
示例日志:
InnoDB: Initializing buffer pool, size = 80.0G
InnoDB: Completed initialization of buffer pool
InnoDB: Highest supported file format is Barracuda.
InnoDB: The log sequence numbers 475575972691 and 475575972691 in ibdata files do not match the log sequence number 925369860131 in the ib_logfiles!
InnoDB: Database was not shutdown normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information …
Run Code Online (Sandbox Code Playgroud)