报错问题:InnoDB: Error: log file ./ib_logfile0 is of different size

Posted 散尽浮华

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错问题:InnoDB: Error: log file ./ib_logfile0 is of different size相关的知识,希望对你有一定的参考价值。

 

在使用xtrabackup对mysql执行备份操作的时候,出现下面的报错:
.....................
xtrabackup: innodb_log_file_size = 50331648
InnoDB: Error: log file ./ib_logfile0 is of different size 33554432 bytes
InnoDB: than specified in the .cnf file 50331648 bytes!


解决办法:
可以计算一下33554432的大小,33554432/1024/1024=32
查看my.cnf配置文件的innodb_log_file_size参数配置:
innodb_log_file_size = 32M

需要调整这个文件的大小
再计算一下50331648的大小,50331648/1024/1024=48

修改my.cnf配置文件的下面一行参数值:
innodb_log_file_size = 48M


然后重启mysql

以上是关于报错问题:InnoDB: Error: log file ./ib_logfile0 is of different size的主要内容,如果未能解决你的问题,请参考以下文章

Mysql数据库提示innodb表不存在

升级 MySQL 至 5.5,报错 [ERROR] Plugin 'InnoDB' init function returned error

xtrabackup备份MySQL报错:InnoDB: Error number 24 means 'Too many open files'

InnoDB: Error: table `mysql`.`innodb_table_stats` does not exist in the InnoDB internal问题解决

InnoDB: Error: log file .ib_logfile0 is of different size 0 10485760 bytes

MySQLInnoDB: Error: checksum mismatch in data file 报错