`

mysql导入sql文件提示ENGINE为"InnoDB"不存在 Unknown table engine 'InnoDB'

阅读更多

使用Navicat Premium操作mysql的工具,导出数据库数据为sql文件。在其他电脑导入时,报错,提示engine为innodb不存在。Unknown table engine 'InnoDB'

原因是:默认的表类型为MyISAM,所以导入表类型为innodb的表时报错。

因innodb的表类型未安装或者未开启。 所以找不到innodb。

 

解决办法:

       在mysql的安装目录下面,找到配置文件my.ini,修改文件中的内容。

# Use this option if you have a MySQL server with InnoDB support enabled
# but you do not plan to use it. This will save memory and disk space
# and speed up some things.
#skip-innodb

去掉最后一行#skip-innodb前的“#” 去掉,重新启动mysql即可。

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics