修改配置文件导致ib_logfile大小不匹配,mysql无法启动

#错误原因:在my.cnf文件里面修改了innodb_log_file_size,
#导致ib_logfile文件的大小与之前存在的文件大小不匹配;
#解决方法:在干净关闭数据库的情况下,删除ib_logfile,然后重启数据库


120221 06:47:03 mysqld_safe mysqld from pid file /home/mysql/jsunsa.pid ended
120221 06:47:07 mysqld_safe Starting mysqld daemon with databases from /home/mysql
120221  6:47:07 [Warning] The syntax '--log-slow-queries' is deprecated and will be removed in a future release. Please use '--slow-query-log'/'--slow-query-log-file' instead.
120221  6:47:07 [Note] Plugin 'FEDERATED' is disabled.
120221  6:47:08 InnoDB: The InnoDB memory heap is disabled
120221  6:47:08 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
120221  6:47:08 InnoDB: Compressed tables use zlib 1.2.3
120221  6:47:08 InnoDB: Using Linux native AIO
120221  6:47:08 InnoDB: Initializing buffer pool, size = 16.0M
120221  6:47:08 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file /home/mysql/ib_logfile0 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 134217728 bytes!
120221  6:47:08 [ERROR] Plugin 'InnoDB' init function returned error.
120221  6:47:08 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
120221  6:47:08 [ERROR] Unknown/unsupported storage engine: INNODB
120221  6:47:08 [ERROR] Aborting


120221  6:47:08 [Note] /usr/sbin/mysqld: Shutdown complete

你可能感兴趣的:(数据库,mysql,File,buffer,deprecated,initialization)