django使用celery时  迁移python3 manage.py migrate报错

django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')

解决方法   换包     django-celery  → → →    django-celery-utf8mb4

python3 -m pip uninstall django-celery

python3 -m pip install django-celery-utf8mb4

然后删除几张djcelery的表,

django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')

 

OK了

 

相关文章:

  • 2022-12-23
  • 2021-08-21
  • 2021-11-23
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2021-08-29
  • 2021-08-30
  • 2022-01-31
  • 2021-06-16
相关资源
相似解决方案