当前位置:Gxlcms > 数据库问题 > django.db.utils.OperationalError: (1193, "Unknown system variable 'storage_engine'")

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

时间:2021-07-01 10:21:17 帮助过:11人阅读

 

如果mysql数据库的版本是5.6,这句话会抛出如下异常

  1. <code class="hljs http has-numbering"><span class="hljs-attribute">django.db.utils.OperationalError: <span class="hljs-string">(1193, "Unknown system variable ‘storage_engine‘")</span></span></code>

 

解决办法

  1. <code class="hljs bash has-numbering"><span class="hljs-string">"OPTIONS":{<span class="hljs-string">"init_command":<span class="hljs-string">"SET default_storage_engine=INNODB;"}</span></span></span></code>

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

标签:div   engine   csdn   ror   var   异常   ring   markdown   attribute   

人气教程排行