[ERROR] InnoDB: .\ibdata1 can't be opened in read-write mode

mysql数据库服务无法启动,查看日志报错如下:


2015-01-07 17:48:54 9136 [ERROR] InnoDB: .\ibdata1 can't be opened in read-write mode
2015-01-07 17:48:54 9136 [ERROR] InnoDB: The system tablespace must be writable!
2015-01-07 17:48:54 9136 [ERROR] Plugin 'InnoDB' init function returned error.
2015-01-07 17:48:54 9136 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-01-07 17:48:54 9136 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-01-07 17:48:54 9136 [ERROR] Aborting


解决方法:

1、kill  mysql进程;

2、cd /data/mysql 

rm -rf ib_logfile0 ib_logfile1




3、重新启动mysql



你可能感兴趣的:(mysql数据库服务无法启动,.\ibdata1)