MySQL error on migration: (1071, 'Specified key was too long; max key length is 767 bytes')
ilhan opened this issue Β· comments
ilhan commented
When using utfmb4 as you should π a default MySQL installation errors out.
This pull request lowers the max_length to 150 from 255.
Another approach could be to write a warning to utfmb4 users somewhere if you dont want to limit those not affected.
ilhan commented
Hm, dont experience the same problem on MySQL 5.7.11 via homebrew on Mac.
Had the problem on MySQL 5.5.44 via apt-get on Debian.
ilhan commented
This is fixed by default in MySQL 5.7.7
Guide for older MySQL
Josep Cugat commented
This was also discussed in #29
Thanks for the extra info about old MySQL versions!