1
InnoDB:错误:日志文件./ib_logfile0的大小不同
我将一个数据库转换为使用InnoDB引擎后,在/etc/mysql/my.cnf中添加了以下几行。 innodb_buffer_pool_size = 2560M innodb_log_file_size = 256M innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 2 innodb_thread_concurrency = 16 innodb_flush_method = O_DIRECT 但是,它会在重新启动mysqld时引发“错误2(HY000)在第2行:在查询期间与MySQL服务器的连接丢失”错误。和mysql错误日志显示以下内容 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes InnoDB: than specified in the .cnf file 0 268435456 bytes! 100118 20:52:52 [ERROR] Plugin 'InnoDB' init function returned …