I am restoring a copy of my wordpress site so I went into phpMyAdmin and clicked import and then import my SQL file. After a minute or so of loading I get a notification:
"MySQL said: #1071 – Specified key was too long; max key length is 1000 bytes"
What can I do to fix this? I’m not sure if this helps but I accessed phpMyAdmin through my GoDaddy account.
2
Answers
As nbk said, make sure that you are importing the sql into the same version of wordpress. There may be differences in the column length of the database columns between different wordpress releases.
Try This
Open the SQL file with a text editor. Find and replace all occurrences of "utf8" with "utf8mb4" as this character set allows longer key lengths. Save the changes and then import the modified SQL file back into phpMyAdmin.
This might Help You.