django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
程序员文章站
2022-05-19 22:23:24
...
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;"}
上一篇: 再次石化
下一篇: 武则天猜字谜(经典)
推荐阅读
-
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'")解决方案