MySQL server PID file could not be found!-mysql启动错误

 改了一下innodb的参数,就报了如下错误:

 

MySQL server PID file could not be found!-mysql启动错误

log.err有:

 

121218 19:16:51 [ERROR] Plugin 'InnoDB' init function returned error.

121218 19:16:51 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

121218 19:16:51 [ERROR] Unknown/unsupported storage engine: INNODB

121218 19:16:51 [ERROR] Aborting

 

 

解决方法:

停止mysql:            service mysqld stop

删除ib_logfile文件:   rm ib_logfile*

改名ib_data1文件:     mv ib_data1 ib_data1_bak

重启:                serivce mysqld start

 

 

你可能感兴趣的:(mysql,error)