找回密码
 立即注册
即日起,论坛关闭新用户注册和登录,论坛相关的贴子保留查阅和下载。获得授权后,有技术问题可联系微信 13199509559 一对一解决。 2024-3-12
查看: 183|回复: 0
打印 上一主题 下一主题

[ MySQL ] 解决办法:3161 - Storage engine MyISAM is disabled (Table crea...

219

主题

219

主题

219

主题

管理员

Rank: 9Rank: 9Rank: 9

积分
0
跳转到指定楼层
1#
 楼主| admin 发表于 2024-8-14 11:40:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[ MySQL ] 解决办法:3161 - Storage engine MyISAM is disabled (Table creation is disallowed).
问题描述:初始化数据库创建表时出现如下错误:

错误代码:3161
3161 - Storage engine MyISAM is disabled (Table creation is disallowed).
1
2
此错误也经常出现在阿里云RDS数据库与本地数据库数据互相迁移过程中


原因分析:MySQL在8.0以后不在默认支持MyISAM 引擎,默认的支持引擎为:InnoDB,MySQL官方的说明:

In MySQL 8.0, it is normally necessary to use ENGINE to specify the MyISAM storage engine because InnoDB is the default engine.

官方链接:https://dev.mysql.com/doc/refman ... storage-engine.html


解决办法:

1、查看当前数据库版本,确认是否是8.x或以上
--报错SQL语句/incorrect create table sql:
CREATE TABLE t (i INT) ENGINE = MyISAM;
--修正后/new creat table sql(amended):
CREATE TABLE t (i INT) ENGINE = InnoDB;




您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表