"Specified key was too long; max key length is 767 bytes" Error in Laravelby@spekulatius
548 reads

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

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@spekulatius

Peter


Receive Stories from @spekulatius

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa