mysql 有關“InnoDB Error ib_logfile0 of different size”毛病。本站提示廣大學習愛好者:(mysql 有關“InnoDB Error ib_logfile0 of different size”毛病)文章只能為提供參考,不一定能成為您想要的結果。以下是mysql 有關“InnoDB Error ib_logfile0 of different size”毛病正文
1,檢查Mysqld(/var/log/mysqld.log)日記,發明以下毛病:
InnoDB: Error: log file /usr/local/mysql/data/ib_logfile0 is of different size 0
5242880 bytes
InnoDB: than specified in the .cnf file 0 104857600 bytes!
030826 1:42:15 Can't init databases
030826 1:42:15 Aborting
2,處理方法
"
If you want to change the number or the size of your InnoDB log files, you
have to shut down MySQL and make sure that it shuts down without errors.
Then copy the old log files into a safe place just in case something went
wrong in the shutdown and you will need them to recover the database. Delete
then the old log files from the log file directory, edit my.cnf, and start
MySQL again. InnoDB will tell you at the startup that it is creating new log
files.
"
在你修正my.cnf的innodb_log_file_size參數前,請先停滯mysql辦事法式的運轉(mysql的停滯沒有湧現任何毛病),並把/var/lib/mysql目次下的ib_logfile0、ib_logfile1、ib_logfile2等之類的文件移除到一個平安的處所(舊日記文件的保存是為了避免不測的湧現),以便Mysql重啟後可以將新的ib_logfile0之類日記文件生成到/var/lib/mysql目次下。假如沒有甚麼不測,舊的日記文件可以刪除。