django-mysqlclient_1193 Error

Source: Internet
Author: User
Tags mysql version

Django Config mysqlclient driver 1193 error Description:
<textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="box-sizing: border-box; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;" readonly=""></textarea>
django . db . utils . operationalerror : (1193 , " Unknown system Variable ' storage_engine ' ) 
?
Thanks to the author:–> Portal when the Django connection database is configured
<textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="box-sizing: border-box; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;" readonly=""></textarea>
"OPTIONS": {"Init_command": "SET Storage_engine=innodb;"} 1

If the MySQL database version is 5.6, this sentence will throw the following exception
<textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="box-sizing: border-box; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;" readonly=""></textarea>
 Django. db. utils. operationalerror: (1193, "Unknown system variable ' storage_engine '")1 
Solutions
<textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="box-sizing: border-box; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;" readonly=""></textarea>
 "OPTIONS" : { "Init_ Command ": " SET Default_ Storage_engine=innodb; "}  

MySQL version: 5.7.21 appears as a 1193 problem as applicable
<textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="box-sizing: border-box; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;" readonly=""></textarea>
  
 Server version: 5.7.21 MySQL Community server (GPL )

django-mysqlclient_1193 Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.