MySQL 5.5在Windows Server 2008 R2上出现1067错误

3
我在两个月前在Windows Server 2008 R2上安装了MySQL Server 5.5,一直都在正常运行。但是突然间,MySQL服务停止了工作,我也无法重新启动该服务。 错误信息:
121120 14:33:31 [Note] Plugin 'FEDERATED' is disabled.
121120 14:33:31 InnoDB: The InnoDB memory heap is disabled
121120 14:33:31 InnoDB: Mutexes and rw_locks use Windows interlocked functions
121120 14:33:31 InnoDB: Compressed tables use zlib 1.2.3
121120 14:33:31 InnoDB: Initializing buffer pool, size = 2.0G
121120 14:33:31 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file .\ib_logfile0 is of different size 0 95420416 bytes
InnoDB: than specified in the .cnf file 0 224395264 bytes!
121120 14:33:31 [ERROR] Plugin 'InnoDB' init function returned error.
121120 14:33:31 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
121120 14:33:31 [ERROR] Unknown/unsupported storage engine: INNODB
121120 14:33:31 [ERROR] Aborting

121120 14:33:31 [Note] C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld: Shutdown complete

我该如何解决这个问题?
1个回答

2
这是错误信息:
InnoDB: Error: log file .\ib_logfile0 is of different size 0 95420416 bytes
InnoDB: than specified in the .cnf file 0 224395264 bytes!

你可以搜索那个.cnf文件并将字节从 224395264 更改为 95420416。也许那会有所帮助...
更新: 如此处所述:更改InnoDB日志文件大小 当服务器没有运行时,你可以删除日志文件 ( .\ib_logfile0 ) ,然后问题就不会再出现了...

进入.cnf文件并搜索保存另一个文件大小的字符串...然后搜索224395264并进行更改... - Mathlight
@SaharshShah,另外,看看这个... 链接 - Mathlight
我已经更改了这个变量: innodb_log_file_size = 214M。但是我仍然无法启动MySQL服务。 - Saharsh Shah
谢谢,它正在工作。但我想知道那个文件有哪种类型的内容?你能解释一下吗? - Saharsh Shah
@SaharshShah,默认情况下,InnoDB使用共享的“表空间”,这是来自单个逻辑存储区域的一个或多个文件。所有InnoDB表都在表空间中一起存储(来自所有数据库)。默认情况下,InnoDB在数据目录中创建两个5MB日志文件:iblogfile0和iblogfile1。信息以循环方式记录,当日志填满时,前面的旧信息将被覆盖。因此,更大的日志允许InnoDB在不强制将记录在日志中的更改应用于磁盘上的表空间的情况下运行更长时间。 - Mathlight

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接