在我的mysql错误日志文件中看到以下内容:
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes InnoDB: than specified in the .cnf file 0 268435456 bytes! 110927 18:36:37 [ERROR] Plugin 'InnoDB' init function returned error. 110927 18:36:37 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
这怎么可以轻易修复?
谢谢!
正如错误所说,在你的my.cnf你必须有innodb_log_file_size = 256M。
所以停止你的MYSQL服务器,重命名ib_logfile0&ib_logfile1文件,然后重启你的服务器。 它应该创build两个每个256M的新文件。
你如何处理这种情况是一个重要的问题。 试图恢复旧的备份? 即在my.cnf中更改了innodb_log_file_size之前。