错误一:
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
django连接数据库时,配置存储引擎
"OPTIONS":{"init_command":"SET storage_engine=INNODB;"}
如果MySQL版本过高则会报错
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
解决办法
"OPTIONS":{"init_command":"SET default_storage_engine=INNODB;"}
参考文章:https://blog.csdn.net/pipisorry/article/details/45727309
网友评论