码迷,mamicode.com
首页 > 数据库 > 详细

mariadb:InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes

时间:2016-08-24 11:13:09      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:

mariadb 启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0



起因:线上正在运行的系统,因为需要调整性能,变更了my.cnf参数的innodb_log_file_size大小,重启MySQL时err日志输出如下
InnoDB: Error: log file ./ib_logfile0 is of different size 0 xxxx bytes 

停掉mariadb 
解决办法:移除原有ib_logfile
#mv ib_logfile0 ib_logfile0.bak
#mv ib_logfile1 ib_logfile1.bak

 

rm -rf ib_logfile*

mariadb:InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes

标签:

原文地址:http://www.cnblogs.com/sysk/p/5801934.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!