Find a new trick!

Registration

Or Log in / Register with GitHub

Fix the "Specified key was to long error"

by admin 5 years ago

If You're running Laravel 5.4, You May Get An Error While You are Migrate Or Dealing with the db. The Error is look like : [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email)) [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

code is entered here

STATS

0 likes

Share

16 views

CATEGORIES