celery mysql 5.6 (1071, 'Specified key was too long; max key length is 767 bytes'

celery 执行migrate 报错

  • django-celery-beat==2.2.1
  • django_celery_beat.0001_initial...Traceback

mysql 5.6

  • MySQ5.7以下版本 因为没有启用innodb_large_prefix
  • show variables like '%innodb_large_prefix%';
  • innodb_large_prefix OFF

打开 innodb_large_prefix 即可

posted @ 2023-03-13 15:08  vx_guanchaoguo0  阅读(15)  评论(0编辑  收藏  举报