阿里云RDS MYSQL8,安装thinkPHP5.1出现 SQLSTATE[HY000]: General error: 3161 Storage engine MyISAM is disable

MACCMS V10 / ThinkPhp5.1 使用阿里云RDS MYSQL8时,安装出现 

导入表结构SQL失败,请检查install.sql的语句是否正确。
think\exception\PDOException: SQLSTATE[HY000]: General error: 3161 Storage engine MyISAM is disabled (Table creation is disallowed). 
in C:\wwwroot\rpc.codecd.com\thinkphp\library\think\db\Connection.php:453 Stack trace: 

原因:

查看阿里云RDS MYSQL8 参数,发现阿里云禁用了myisam,memory,archive引擎的创建,并且无法修改。

解决方案: 

修改数据库安装脚本

在MACCMS源码 install目录下的sql目录下的install.sql中,将ENGINE=MyISAM 全部替换成 ENGINE=INNODB 就完事了

你可能感兴趣的:(笔记,阿里云,mysql)