mysql无法启动 innodb_MySQL 服务无法启动,Innodb 初始化失败处理

今天在 Windows 安装部署了 MySQL 5.5.45 for Community 社区版,由于开启了很多其它的 Win 应用程序,导致内存使用过大。 平时启动都正常的 MySQL,现在启动报失败了,查了 Win 的系统事件日志和 MySQL 的 err 日志文件(如下),报如下 Innodb 初始化失败的错误:

170117  3:04:40 [Note] Plugin 'FEDERATED' is disabled.

170117  3:04:40 InnoDB: The InnoDB memory heap is disabled

170117  3:04:40 InnoDB: Mutexes and rw_locks use Windows interlocked functions

170117  3:04:40 InnoDB: Compressed tables use zlib 1.2.3

170117  3:04:40 InnoDB: Initializing buffer pool, size = 500.0M

170117  3:04:40 InnoDB: Completed initialization of buffer pool

InnoDB: Error: log file .\ib_logfile0 is of different size 0 922746880 bytes

InnoDB: than specified in the .cnf file 0 146800640 bytes!

170117  3:04:40 [ERROR] Plugin 'InnoDB' init function returned error.

170117  3:04:40 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

170117  3:04:40 [ERROR] Unknown/unsupported storage engine: INNODB

170117  3:04:40 [ERROR] Aborting

检查 my.ini 文件的 innodb_buffer_pool_size 参数值等于 1G。后来把参数值改为 500M,重新启动 MySQL 服务,还是报如上错误。

最后根据以上提示,将 MySQL 安装目录 % MySQL_HOME%/data 目录下的日志文件ib_logfile0 和 ib_logfile1 改名,再重新启动 MySQL 服务就可以了。

这两个日志文件如果不存在,每次启动 MySQL 服务后,都会自动创建的。

最后,故障解决。

(完)

8057100a53ca5a2fb85122d6f2c24fb9.png

8d84e4d8126041a4600ebd931f811894.png

1f4d9eebc5c69a03eae243c9c75bbf80.png

1f4da2f1a1d8df64dae01fc153a564b5.png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值