MySQL about "InnoDB error IB_LOGFILE0 of different size" error _mysql
Source: Internet
Author: User
1, view the mysqld (/var/log/mysqld.log) log and discover the following error: 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, the solution "
If you are want to change the number or the size of your InnoDB log files
Have to shut down the MySQL and make sure the IT shuts down without errors.
Then copy the old log to a safe place just in case something went
Wrong in the shutdown and your'll 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'll tell you at the startup, it is creating new log
Files.
"
before you modify the my.cnf innodb_log_file_size parameters, please stop the MySQL service program running (MySQL stopped without any errors), and the/var/lib/mysql directory of IB_LOGFILE0, ib_ Files such as Logfile1, ib_logfile2, etc. are removed to a secure place (the old log file is reserved to prevent accidental occurrences) so that the new IB_LOGFILE0 log files can be generated to the/var/lib/mysql directory after the MySQL reboot. If nothing unexpected, the old log file can be deleted.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.