I have a WordPress website on my local WAMP server. But when I upload its database to live server, I get error
#1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’
Any help would be appreciated!
I have a WordPress website on my local WAMP server. But when I upload its database to live server, I get error
#1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’
Any help would be appreciated!
easy replace
I believe this error is caused because the local server and live server are running different versions of MySQL. To solve this:
utf8mb4_unicode_520_ci
withutf8mb4_unicode_ci
Hope that helps
You can solve this by finding
in your
.sql
file, and swapping it withOpen the sql file in your text editor;
1. Search: utf8mb4_unicode_ci Replace: utf8_general_ci (Replace All)
2. Search: utf8mb4_unicode_520_ci Replace: utf8_general_ci (Replace All)
3. Search: utf8mb4 Replace: utf8 (Replace All)
Save and upload!
just remove "520_"
utf8mb4_unicode_520_ci
→utf8mb4_unicode_ci
Late to the party, but in case this happens with a
WORDPRESS
installation :#1273 - Unknown collation: 'utf8mb4_unicode_520_ci
In phpmyadmin, under
export method
>Format-specific options
( custom export )Set to :
MYSQL40
If you will try to import now, you now might get another error message :
1064 - You have an error in your SQL syntax; .....
That is because The older
TYPE
option that was synonymous withENGINE
was removed in MySQL 5.5.Open your
.sql
file , search and replace all instancesfrom
TYPE=
toENGINE=
Now the import should go smoothly.