django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")解决办法
程序员文章站
2022-05-19 22:10:35
...
django连接数据库时,配置
'OPTIONS': {'init_command': 'SET storage_engine=INNODB;'}
我使用的是Server version: 5.7.22-log MySQL Community Server (GPL),这句话会抛出如下异常:
django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")
解决办法:
'OPTIONS': {'init_command': 'SET default_storage_engine=INNODB;'}
上一篇: Markdown语法学习第一天
下一篇: 获取APP版本号
推荐阅读
-
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'")解决方案
-
Unknown system variable storage_engine