首页 > 代码库 > MYSQL服务无法启动:InnoDB: .\ibdata1 can't be opened in read-write mode
MYSQL服务无法启动: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、打开任务管理器终止mysqld进程;
2、打开mysql安装目录的data文件夹,删除以下2个文件:
ib_logfile0和ib_logfile1
3、重新启动mysql
--------------------------------------
Dylan Presents.
MYSQL服务无法启动:InnoDB: .\ibdata1 can't be opened in read-write mode
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。