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

对于使用了默认 my.cnf(一般教程都会教你使用support-files/my-medium.cnf)的Mysql服务来说
如果中间使用了innodb的话,innodb默认的log file大小是56M

在错误日志里你会看到如下输出:
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes

只需要修改log_file_size 即可:
innodb_log_file_size             = 512M  #256M

猜你喜欢

转载自san-yun.iteye.com/blog/1857169
今日推荐