mysql异常断电启动不_解决centos服务器异常断电mysql启动异常启动Mysql时报错

解决centos服务器异常断电mysql启动异常启动Mysql时报错

现象:

centos服务器异常断电MySQL启动异常启动Mysql时报错:mysqld_safe mysqld from pid file /usr/local/mysql/Linux.pid end

但是打开日志文件 查看

InnoDB: Completed initialization of buffer pool

InnoDB: Error: log file ./ib_logfile0 is of different size 50331648 bytes

InnoDB: than specified in the .cnf file 5242880 bytes!

160603

[ERROR] Plugin ‘InnoDB’ init function returned error.

160603

14:06:15 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.

160603

14:06:15 [ERROR] Unknown/unsupported storage engine: InnoDB

160603 14:06:15 [ERROR] Aborting

处理方案:

1、存储引擎错误

Unknown/unsupported storage engine: InnoDB

2、检查一下配置文件中关于innodb的参数,如果有skip-innodb注释掉

3、如果重新设置了innodb_log_file_size之类的,

4、需?删除几个rm -rf ib_logfile,然后重启数据库

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值