Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Specified key was too long; max key length is 767 bytes

I had this error and I changed my tables column length smaller for the indexed foreign key columns so I changed it like this:

VARCHAR(1024)
To:

VARCHAR(512)
And run the query again.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Specified #key #max #key #length #bytes
ADD COMMENT
Topic
Name
4+1 =