首页 > 其他 > 详细

报错 raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)

时间:2018-10-27 22:26:39      阅读:1206      评论:0      收藏:0      [点我收藏+]

Django 执行迁移生成表:

python manage.py migrate

报错:

raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)

 

原因:

Django2.1不再支持MySQL5.5,必须5.6版本以上

 

解决办法:

二选一

(1)Django降级到2.0

pip install Django==2.0.0 -i https://pypi.douban.com/simple

(2)MySQL升级

 

报错 raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)

原文:https://www.cnblogs.com/yebaofang/p/9863678.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!