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.