12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
mysql数据库 时间:2024-11-29 10:12:12
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
发现问题今天在工作中,从本地数据库复制表数据到虚拟机 CentOS 6.6 上的数据库时,得到提示:Unknown table engine 'InnoDB'于是在服务器 MySQL 中查看了引擎:mysql> sho
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
发现问题
今天在工作中,从本地数据库复制表数据到虚拟机 CentOS 6.6 上的数据库时,得到提示:
Unknown table engine 'InnoDB'
于是在服务器 MySQL 中查看了引擎:
mysql> show engines\G
得到:
*************************** 1. row ***************************Engine: MyISAMSupport: DEFAULTComment: MyISAM storage engineTransactions: NO XA: NO Savepoints: NO*************************** 2. row ***************************Engine: CSVSupport: YESComment: CSV storage engineTransactions: NO XA: NO Savepoints: NO*************************** 3. row ***************************Engine: MEMORYSupport: YESComment: Hash based, stored in memory, useful for temporary tablesTransactions: NO XA: NO Savepoints: NO*************************** 4. row ***************************Engine: BLACKHOLESupport: YESComment: /dev/null storage engine (anything you write to it disappears)Transactions: NO XA: NO Savepoints: NO*************************** 5. row ***************************Engine: MRG_MYISAMSupport: YESComment: Collection of identical MyISAM tablesTransactions: NO XA: NO Savepoints: NO*************************** 6. row ***************************Engine: PERFORMANCE_SCHEMASupport: YESComment: Performance SchemaTransactions: NO XA: NO Savepoints: NO*************************** 7. row ***************************Engine: ARCHIVESupport: YESComment: Archive storage engineTransactions: NO XA: NO Savepoints: NO*************************** 8. row ***************************Engine: FEDERATEDSupport: NOComment: Federated MySQL storage engineTransactions: NULL XA: NULL Savepoints: NULL*************************** 9. row ***************************Engine: InnoDBSupport: NOComment: Supports transactions, row-level locking, and foreign keysTransactions: NULL XA: NULL Savepoints: NULLrows in set (0.00 sec)
在 InnoDB 的 Supports 为 NO
解决方法
编辑 my.cnf
[root@localhost mysql]# vim /etc/my.cnf
把其中 innodb = OFF 改为 innodb = ON
同时把 skip-innodb 注释掉即可。
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19