主頁 > 知識庫 > MySQL啟動時InnoDB引擎被禁用了的解決方法

MySQL啟動時InnoDB引擎被禁用了的解決方法

熱門標(biāo)簽:服務(wù)外包 鐵路電話系統(tǒng) 地方門戶網(wǎng)站 網(wǎng)站排名優(yōu)化 百度競價排名 AI電銷 呼叫中心市場需求 Linux服務(wù)器

發(fā)現(xiàn)問題

今天在工作中,從本地數(shù)據(jù)庫復(fù)制表數(shù)據(jù)到虛擬機 CentOS 6.6 上的數(shù)據(jù)庫時,得到提示:

Unknown table engine 'InnoDB'

于是在服務(wù)器 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 注釋掉即可。

總結(jié)

以上就是這篇文章的全部內(nèi)容了,希望本文的內(nèi)容對大家的學(xué)習(xí)或者工作能帶來一定的幫助,如果有疑問大家可以留言交流,謝謝大家對腳本之家的支持。

您可能感興趣的文章:
  • InnoDB 類型MySql恢復(fù)表結(jié)構(gòu)與數(shù)據(jù)
  • mysql執(zhí)行sql文件報錯Error: Unknown storage engine‘InnoDB’的解決方法
  • mysql innodb 異常修復(fù)經(jīng)驗分享
  • mysql innodb的監(jiān)控(系統(tǒng)層,數(shù)據(jù)庫層)
  • Mysql更換MyISAM存儲引擎為Innodb的操作記錄總結(jié)
  • 關(guān)于MySQL innodb_autoinc_lock_mode介紹
  • MySQL優(yōu)化之InnoDB優(yōu)化
  • MySQL存儲引擎中MyISAM和InnoDB區(qū)別詳解
  • MySQL提示The InnoDB feature is disabled需要開啟InnoDB的解決方法
  • MySQL中Innodb的事務(wù)隔離級別和鎖的關(guān)系的講解教程
  • 詳解MySQL中InnoDB的存儲文件

標(biāo)簽:黃山 湖南 衡水 仙桃 蘭州 崇左 湘潭 銅川

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《MySQL啟動時InnoDB引擎被禁用了的解決方法》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266