码迷,mamicode.com
首页 > 数据库 > 详细

MYSQL服务无法启动:InnoDB: .\ibdata1 can't be opened in read-write mode

时间:2015-01-07 18:46:14      阅读:3168      评论:0      收藏:0      [点我收藏+]

标签:mysql   ibdata1   read-write   

今天在那做实验倒腾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、打开任务管理器终止mysqld进程;

2、打开mysql安装目录的data文件夹,删除以下2个文件:

ib_logfile0和ib_logfile1

3、重新启动mysql


--------------------------------------

Dylan    Presents.

MYSQL服务无法启动:InnoDB: .\ibdata1 can't be opened in read-write mode

标签:mysql   ibdata1   read-write   

原文地址:http://blog.csdn.net/indexman/article/details/42497137

(2)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!