我的编程空间,编程开发者的网络收藏夹
学习永远不晚

怎么解决MySQL的[ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode问题

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

怎么解决MySQL的[ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode问题

本篇内容主要讲解“怎么解决MySQL的[ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode问题”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么解决MySQL的[ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode问题”吧!

问题:
[root@localhost mysql]# ./scripts/mysql_install_db --user=mysql --basedir=/u01/app/mysql --datadir=/u01/app/mysql/data
Installing MySQL system tables...2016-01-25 15:34:36 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-01-25 15:34:36 0 [Note] /u01/app/mysql/bin/mysqld (mysqld 5.6.28) starting as process 10302 ...
2016-01-25 15:34:36 10302 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-01-25 15:34:36 10302 [Note] InnoDB: The InnoDB memory heap is disabled
2016-01-25 15:34:36 10302 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-01-25 15:34:36 10302 [Note] InnoDB: Memory barrier is not used
2016-01-25 15:34:36 10302 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-01-25 15:34:36 10302 [Note] InnoDB: Using CPU crc32 instructions
2016-01-25 15:34:36 10302 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-01-25 15:34:36 10302 [Note] InnoDB: Completed initialization of buffer pool
2016-01-25 15:34:36 10302 [ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode
2016-01-25 15:34:36 10302 [ERROR] InnoDB: The system tablespace must be writable!
2016-01-25 15:34:36 10302 [ERROR] Plugin 'InnoDB' init function returned error.
2016-01-25 15:34:36 10302 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-01-25 15:34:36 10302 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-01-25 15:34:36 10302 [ERROR] Aborting
2016-01-25 15:34:36 10302 [Note] Binlog end
2016-01-25 15:34:36 10302 [Note] /u01/app/mysql/bin/mysqld: Shutdown complete

原因:之前执行过一次./scripts/mysql_install_db --user=mysql --basedir=/u01/app/mysql --datadir=/u01/app/mysql/data,报错了,改完参数后,重新执行,又报了此错误

解决:
[root@localhost mysql]# pwd
/u01/app/mysql
[root@localhost mysql]# cd data
[root@localhost data]# ls
ibdata1  ib_logfile0  ib_logfile1  mysql  test
[root@localhost data]# rm -rf *
[root@localhost data]# cd ..
[root@localhost mysql]# ./scripts/mysql_install_db --user=mysql --basedir=/u01/app/mysql --datadir=/u01/app/mysql/data
日志显示成功!

到此,相信大家对“怎么解决MySQL的[ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode问题”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

怎么解决MySQL的[ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode问题

下载Word文档到电脑,方便收藏和打印~

下载Word文档

编程热搜

目录