当前位置: 代码迷 >> 综合 >> Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 by
  详细解决方案

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

热度:40   发布时间:2023-12-21 17:08:22.0

对于使用了默认 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

  相关解决方案