paint-brush
"Specified key was too long; max key length is 767 bytes" Error in Laravelby@spekulatius
565 reads
565 reads

"Specified key was too long; max key length is 767 bytes" Error in Laravel

by Peter1mAugust 17th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

An issue is coming up when using older versions of MySQL (prior to 5.7.8) or MariaDB. This can be resolved in Laravel simply by changing your app service provider configuration. After this you might need to rebuild your database using. This will completely reset your database and start off fresh. Alternatively, you can also upgrade your database server. This hasn't been discussed here as it is very system specific. This isn't discussed here but it's very system-specific.

Company Mentioned

Mention Thumbnail
featured image - "Specified key was too long; max key length is 767 bytes" Error in Laravel
Peter HackerNoon profile picture
Peter

Peter

@spekulatius

Building side-projects and learning new stuff every day.

Learn More
LEARN MORE ABOUT @SPEKULATIUS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Peter HackerNoon profile picture
Peter@spekulatius
Building side-projects and learning new stuff every day.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Learnrepo
Coffee-web