MySQL啟動時InnoDB引擎被禁用了的解決方法
更新時間:2017年08月03日 11:49:58 作者:黃棣-dee
最近在工作中遇到一個問題,現將解決的方法分享出來供大家參考學習,下面這篇文章主要給大家介紹了關于MySQL啟動時InnoDB引擎被禁用了的解決方法,需要的朋友們下面跟著小編來一起學習學習吧。
發(fā)現問題
今天在工作中,從本地數據庫復制表數據到虛擬機 CentOS 6.6 上的數據庫時,得到提示:
Unknown table engine 'InnoDB'
于是在服務器 MySQL 中查看了引擎:
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
注釋掉即可。
總結
以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作能帶來一定的幫助,如果有疑問大家可以留言交流,謝謝大家對腳本之家的支持。
您可能感興趣的文章:
- InnoDB 類型MySql恢復表結構與數據
- mysql執(zhí)行sql文件報錯Error: Unknown storage engine‘InnoDB’的解決方法
- mysql innodb 異常修復經驗分享
- mysql innodb的監(jiān)控(系統層,數據庫層)
- Mysql更換MyISAM存儲引擎為Innodb的操作記錄總結
- 關于MySQL innodb_autoinc_lock_mode介紹
- MySQL優(yōu)化之InnoDB優(yōu)化
- MySQL存儲引擎中MyISAM和InnoDB區(qū)別詳解
- MySQL提示The InnoDB feature is disabled需要開啟InnoDB的解決方法
- MySQL中Innodb的事務隔離級別和鎖的關系的講解教程
- 詳解MySQL中InnoDB的存儲文件
相關文章
解決MySQL報錯Error 3948 (42000): Loading loc
在執(zhí)行MySQL項目過程中意外出現的報錯,之前也沒有遇到過,報錯信息如下,Error 3948 (42000): Loading local data is disabled; this must be enabled on both the client an,本文小編就給大家介紹一下解決報錯的方法,需要的朋友可以參考下2023-09-09MySQL安裝與配置:手工配置MySQL(windows環(huán)境)過程
這篇文章主要介紹了MySQL安裝與配置:手工配置MySQL(windows環(huán)境)過程,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教2023-12-12