MySQL 出現了"ERROR 1033: Incorrect information file:"
這個錯誤會導致我們有許多 table 無法 query ,
查MySQL的Error log file中出現以下的訊息:
InnoDB: Error: log file ./ib_logfile0 is of different size 0
2097152000 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
091125 11:48:18 [ERROR] Plugin 'InnoDB' init function returned error.
091125 11:48:18 [ERROR] Plugin 'InnoDB' registration as a STORAGE
ENGINE failed.
我的回答列⺬於下列回覆中:
from InnoDB's view point it is not a bug but a restriction (it
happened only when the log file is corrupted or a wrong option file is
applied).
To prevent such situation, there are 2 options:
1. apply your own option file by start DB with --defaults-
file=<your_my.cnf_path> option, and remove the edit privilege from
other accounts of the OS, if you do need to change the size of the log
file please apply the following procedure - shutdown the DB, move out
(rename) the log file, start the DB with new options and let DB create
a new log file for you. If every thing went fine, delete the original
innodb log file.
2. apply RAID 10 with the file system, to increase the tolerant with
file corruption.