Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0
环境介绍:MySQL5.5.40
起因:线上正在运行的系统,因为需要调整性能,变更了my.cnf参数的innodb_log_file_size大小,重启MySQL时err日志输出如下
InnoDB: Error: log file ./ib_logfile0 is of different size 0 xxxx bytes
解决办法:移除原有ib_logfile
#mv ib_logfile0 ib_logfile0.bak
#mv ib_logfile1 ib_logfile1.bak
总结:MySQL参数调优时,需细心谨慎
环境介绍:MySQL5.5.40
起因:线上正在运行的系统,因为需要调整性能,变更了my.cnf参数的innodb_log_file_size大小,重启MySQL时err日志输出如下
InnoDB: Error: log file ./ib_logfile0 is of different size 0 xxxx bytes
解决办法:移除原有ib_logfile
#mv ib_logfile0 ib_logfile0.bak
#mv ib_logfile1 ib_logfile1.bak
总结:MySQL参数调优时,需细心谨慎
本文介绍了在调整MySQL的InnoDB日志文件大小时遇到的问题及解决方法。当更改my.cnf配置文件中的innodb_log_file_size值并重启MySQL时,可能会遇到错误提示关于ib_logfile0文件大小不匹配的情况。文章给出了具体的解决方案,即备份并移除原有的ib_logfile文件。
1504

被折叠的 条评论
为什么被折叠?



