Unable to create the django_migrations table ((1064, "You have an error in your SQL syntax;
报错信息如下:
Unable to create the django_migrations table (%s)" % exc)
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations t
able ((1064, "You have an error in your SQL syntax; check the manual that corresponds to your My
SQL server version for the right syntax to use near '(6) NOT NULL)' at line 1
原因
Django2.1
之后不再支持MySQL5.5
,必须5.6
版本以上,我的本地数据库是mysql5.5
所以报错了
解决
django
降级
pip install Django==2.0.0 -i https://pypi.douban.com/simple
或者 mysql升级