执行python manage.py makemigrations时正常,但在执行数据迁移python manage.py migrate时,报如下错误!
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((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”))
原因是Django的版本问题,查了官方文档,Django2.1只支持mysql5.6以上的版本,云服务器上安装的是Mysql5.5!