摘要:关于MySQL 与Django版本匹配相关知识的经验分享。
run:(env) E:\PythonPro\PyDjangoProDemo011\xuanyuaniotpro>python manage.py migrate
报错代码提示如下:raise errorclass(errno, errval)
django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) NOT NULL)' at line 1")
During handling of the above exception, another exception occurred:
根据提示分析报错原因:
Django2.1不再支持MySQL5.5,必须mysql5.6版本以上
查mysql版本和Django版本:
mysql版本: