Mysql error related to "InnoDBErrorib_logfile0ofdifferentsize" _ MySQL
Source: Internet
Author: User
Mysql error "InnoDBErrorib_logfile0ofdifferentsize" bitsCN.com
1. view the Mysqld (/var/log/mysqld. log) log and find 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. Solution "
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.
"
After you modify my. before the innodb_log_file_size parameter of cnf, stop the mysql Service Program (mysql stops without any errors ), and remove ib_logfile0, ib_logfile1, ib_logfile2, and other files under the/var/lib/mysql directory to a safe place (the old log files are retained to prevent unexpected occurrences ), after Mysql is restarted, a new log file such as ib_logfile0 can be generated to the/var/lib/mysql directory. If there is no accident, the old log file can be deleted. BitsCN.com
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.