django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
程序员文章站
2022-05-19 22:10:11
...
django连接数据库时,配置
"OPTIONS":{"init_command":"SET storage_engine=INNODB;"}
如果mysql数据库的版本是5.6,这句话会抛出如下异常
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
解决办法
"OPTIONS":{"init_command":"SET default_storage_engine=INNODB;"}
上一篇: 第一天的MarkDown语法
下一篇: django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
推荐阅读
-
Mysql5.7修改用户密码,报错“Unknown trigger has an error in its body: ‘Unknown system variable ‘maintain_user”
-
[MySQL参数取值] Status取值ERROR 1193 (HY000): Unknown system_MySQL
-
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
-
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
-
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
-
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")解决办法
-
【error】django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
-
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
-
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
-
Django:报错django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")解决方案