关于改变innodb_log_file_size后无法启动mysql的问题

最近在看MYSQL优化的参数,改了innodb_log_file_size参后,启动下面报错,然来是改了这个参数后需要关闭MYSQLSQL并删除ib_logfile0, ib_logfile1这些文件,再启动MYSQL。


080622 10:53:27 mysqld_safe mysqld from pid file /usr/local/mysql/data/localhost.localdomain.pid ended
080622 10:53:27 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
InnoDB: Error: log file /usr/local/mysql/data/ib_logfile0 is of different size 0 104857600 bytes
InnoDB: than specified in the .cnf file 0 134217728 bytes!
080622 10:53:28 [ERROR] Plugin 'InnoDB' init function returned error.
080622 10:53:28 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
080622 10:53:28 [Note] Event Scheduler: Loaded 0 events
080622 10:53:28 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.24-rc-log'  socket: '/usr/local/mysql/tmp/mysql.sock'  port: 3307  Source distribution
080622 10:53:28 [Note] Event Scheduler: scheduler thread started with id 1
080622 11:20:07 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

你可能感兴趣的:(InnoDB)