更改了innodb的日志文件大小,即innodb_log_file_size的值,重启mysql之后对innodb的表都会报错:[ERROR] /usr/local/mysql/bin/mysqld: Incorrect information in file: './a/b.frm'。解决办法是修改其值后把日志文件ib_logfile删掉再启动mysql(请注意备份)。
注:删log之前确保innodb_fast_shutdown的值不是2,如果是2则需要先改为1,然后重启使之生效,再关闭mysql删log文件。其默认值是1。
参考: http://dev.mysql.com/doc/refman/5.0/en/adding-and-removing.html
注:删log之前确保innodb_fast_shutdown的值不是2,如果是2则需要先改为1,然后重启使之生效,再关闭mysql删log文件。其默认值是1。
参考: http://dev.mysql.com/doc/refman/5.0/en/adding-and-removing.html