Giter Site home page Giter Site logo

Comments (4)

mheppner avatar mheppner commented on July 17, 2024

Can you provide the full error message? It would be helpful to pinpoint which field is causing this. What version of MySQL are you using and which Python driver?

It seems like when you use utf8mb4, the 4-length characters cause the max key size to be 191, and some of the keys used in django-celery-beat are 200. You can switch to utf8 instead for the columns or tables that are using the max of 200.

from django-celery-beat.

iTraceur avatar iTraceur commented on July 17, 2024

Yes, I wanted my mysql to support emoji, so I
changed the default charset of my mysql to utf8mb4, then caused the problem.
And I had solved it by upgrade the mysql version to 5.7, Its default row_format is "dynamic" what supports larger "max key size".

from django-celery-beat.

iTraceur avatar iTraceur commented on July 17, 2024

Another way as you said, set the max_length value of CharField less then 192 in the low version of mysql.

from django-celery-beat.

JoshYuJump avatar JoshYuJump commented on July 17, 2024

@iTraceur How to deal with it in MySQL 5.6. Why not set the max_length to 191 in next release?

from django-celery-beat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.