django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")

 

django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")

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;"}
posted @ 2019-01-10 18:34  zbllly  阅读(320)  评论(0编辑  收藏  举报