《Mysql應用Mysql啟動中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes 的問題》要點:
本文介紹了Mysql應用Mysql啟動中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes 的問題,希望對您有用。如果有疑問,可以聯系我們。
如果你的配置文件使用了類似my-innodb-heavy-4G.cnf作為配置文件的話.
Mysql可以正常啟動,但innodb的表無法使用
在錯誤日志里你會看到如下輸出:
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
現在需要做的事情就是把原來的 innodb 的ib_logfile×備份到一個目錄下,然后刪除掉原來的文件,重啟 mysql.
你會看到ib_logfile*大小變成了你配置文件中指定的大小.
my-innodb-heavy-4G.cnf的話(log file 的大小是256M:innodb_log_file_size = 256M)
你會看到很多個268435456大小的文件.
轉載請注明本頁網址:
http://www.fzlkiss.com/jiaocheng/1665.html