Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

violation: 1071 Specified key was too long; max key length is 1000 bytes

Inside config/database.php, replace this line for mysql

Copy Code
'engine' => null',
with

Copy Code
'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',
Instead of setting a limit on your string lenght.
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #Specified #key #max #key #length #bytes
ADD COMMENT
Topic
Name
9+8 =