Laravel Database Migration Error Key too long

When doing a database migration on Laravel, i get following error

This is because MariaDB use different UTF8 format.

To fix, edit file

Inside, find

Replace with

You will also need to add

here is how my file look like after editing.


Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *