mysql启动时innodb引擎被禁用了怎么办?最近在工作中遇到一个问题,现将解决的方法分享出来供大家参考学习,下面这篇文章主要给大家介绍了关于mysql启动时innodb引擎被禁用了的解决方法,需要的朋友们下面跟着小编来一起学习学习吧。希望能帮助到大家。
发现问题
今天在工作中,从本地数据库复制表数据到虚拟机 CentOS 6.6 上的数据库时,得到提示:
Unknown table engine 'InnoDB'
于是在服务器 MySQL 中查看了引擎:
mysql> show enginesG
得到:
*************************** 1. row *************************** Engine: MyISAM Support: DEFAULT Comment: MyISAM storage engineTransactions: NO XA: NO Savepoints: NO*************************** 2. row *************************** Engine: CSV Support: YES Comment: CSV storage engineTransactions: NO XA: NO Savepoints: NO*************************** 3. row *************************** Engine: MEMORY Support: YES Comment: Hash based, stored in memory, useful for temporary tablesTransactions: NO XA: NO Savepoints: NO*************************** 4. row *************************** Engine: BLACKHOLE Support: YES Comment: /dev/null storage engine (anything you write to it disappears)Transactions: NO XA: NO Savepoints: NO*************************** 5. row *************************** Engine: MRG_MYISAM Support: YES Comment: Collection of identical MyISAM tablesTransactions: NO XA: NO Savepoints: NO*************************** 6. row *************************** Engine: PERFORMANCE_SCHEMA Support: YES Comment: Performance SchemaTransactions: NO XA: NO Savepoints: NO*************************** 7. row *************************** Engine: ARCHIVE Support: YES Comment: Archive storage engineTransactions: NO XA: NO Savepoints: NO*************************** 8. row *************************** Engine: FEDERATED Support: NO Comment: Federated MySQL storage engineTransactions: NULL XA: NULL Savepoints: NULL*************************** 9. row *************************** Engine: InnoDB Support: NO Comment: Supports transactions, row-level locking, and foreign keysTransactions: NULL XA: NULL Savepoints: NULLrows in set (0.00 sec)
在 InnoDB 的 Supports 为 NO
解决方法
编辑 my.cnf
卡奥斯智能交互引擎
聚焦工业领域的AI搜索引擎工具
36 查看详情
[root@localhost mysql]# vim /etc/my.cnf
把其中 innodb = OFF 改为 innodb = ON
同时把 skip-innodb 注释掉即可。
相关推荐:
MySQL存储引擎MyISAM和InnoDB之间的比较
mysql中innoDB锁的介绍
MySQL InnoDB和MyISAM数据引擎的差别分析详解
以上就是MySQL启动时InnoDB引擎被禁用了怎么办的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/386578.html
微信扫一扫
支付宝扫一扫