首页 / 数据库 / MySQL / 修改配置文件导致ib_logfile大小不匹配及mysql无法启动
修改配置文件导致ib_logfile大小不匹配及mysql无法启动2014-10-28#错误原因:在my.cnf文件里面修改了innodb_log_file_size,#导致ib_logfile文件的大小与之前存在的文件大小不匹配;#解决方法:在干净关闭数据库的情况下,删除ib_logfile,然后重启数据库120221 06:47:03 mysqld_safe mysqld from pid file /home/mysql/jsunsa.pid ended120221 06:47:07 mysqld_safe Starting mysqld daemon with databases from /home/mysql120221 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本栏目更多精彩内容:http://www.bianceng.cn/database/MySQL/120221 6:47:08 InnoDB: Mutexes and rw_locks use InnoDB"s own implementation120221 6:47:08 InnoDB: Compressed tables use zlib 1.2.3120221 6:47:08 InnoDB: Using Linux native AIO120221 6:47:08 InnoDB: Initializing buffer pool, size = 16.0M120221 6:47:08 InnoDB: Completed initialization of buffer poolInnoDB: Error: log file /home/mysql/ib_logfile0 is of different size 0 5242880 bytesInnoDB: 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: INNODB120221 6:47:08 [ERROR] Aborting120221 6:47:08 [Note] /usr/sbin/mysqld: Shutdown complete