当更改了MySQL参数后,重新启动MySQL数据库,查看日志发现以下错误信息
141029 2:23:37 [ERROR] Plugin ‘InnoDB‘ init function returned error.
141029 2:23:37 [ERROR] Plugin ‘InnoDB‘ registration as a STORAGE ENGINE failed.
解决办法
[[email protected] mysql]# ls
ibdata1 master.info mysql-bin.000002 mysql-bin.000005 mysql-relay-bin.000027 mysql.sock
ib_logfile0 mysql mysql-bin.000003 mysql-bin.000006 mysql-relay-bin.000028 relay-log.info
ib_logfile1 mysql-bin.000001 mysql-bin.000004 mysql-bin.log.index mysql-relay-bin.index test
将ib_logfile删除
[[email protected] mysql]# rm -rf ib_logfile*
重新启动mysql
[[email protected] mysql]# service mysqld restart
停止 mysqld: [确定]
正在启动 mysqld: [确定]
问题解决
MySQL启动时报Plugin 'InnoDB' registration as a STORAGE ENGINE failed.错误