这篇文章主要介绍如何解决Mysql启动时InnoDB引擎被禁用的问题,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!发现问题今天在工作中,从本地数据库复制表数据到虚拟机 Centos
这篇文章主要介绍如何解决Mysql启动时InnoDB引擎被禁用的问题,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
发现问题
今天在工作中,从本地数据库复制表数据到虚拟机 Centos 6.6 上的数据库时,得到提示:
Unknown table engine 'InnoDB'
mysql> show engines\G
得到:
*************************** 1. row ***************************
Engine: MyISAM
Support: DEFAULT
Comment: MyISAM storage engine
Transactions: NO
XA: NO
Savepoints: NO
*************************** 2. row ***************************
Engine: CSV
Support: YES
Comment: CSV storage engine
Transactions: NO
XA: NO
Savepoints: NO
*************************** 3. row ***************************
Engine: MEMORY
Support: YES
Comment: Hash based, stored in memory, useful for temporary tables
Transactions: 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 tables
Transactions: NO
XA: NO
Savepoints: NO
*************************** 6. row ***************************
Engine: PERFORMANCE_SCHEMA
Support: YES
Comment: Performance Schema
Transactions: NO
XA: NO
Savepoints: NO
*************************** 7. row ***************************
Engine: ARCHive
Support: YES
Comment: Archive storage engine
Transactions: NO
XA: NO
Savepoints: NO
*************************** 8. row ***************************
Engine: FEDERATED
Support: NO
Comment: Federated MySQL storage engine
Transactions: NULL
XA: NULL
Savepoints: NULL
*************************** 9. row ***************************
Engine: InnoDB
Support: NO
Comment: Supports transactions, row-level locking, and foreign keys
Transactions: NULL
XA: NULL
Savepoints: NULL
rows in set (0.00 sec)
在 InnoDB 的 Supports 为 NO
解决方法
编辑 my.cnf
[root@localhost mysql]# vim /etc/my.cnf
把其中 innodb = OFF 改为 innodb = ON
同时把 skip-innodb 注释掉即可。
以上是如何解决MySQL启动时InnoDB引擎被禁用的问题的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注编程网数据库频道!
--结束END--
本文标题: 如何解决MySQL启动时InnoDB引擎被禁用的问题
本文链接: https://www.lsjlt.com/news/51749.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-28
2024-04-28
2024-04-28
2024-04-28
2024-04-28
2024-04-28
2024-04-28
2024-04-28
2024-04-28
2024-04-28
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0