An error "Specified key was too long" can be displayed when running the database migration. This can happen with older versions of MySQL or MariaDB. The complete error may read SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes.
Solution
Configure the index lengths to support the utf8mb4 character set.
Was this article helpful?
Related articles
comments powered by Disqus