ERROR 1273 (HY000): Unknown collation: 'utf8mb4_unicode_520_ci'

ERROR 1273 (HY000): Unknown collation: 'utf8mb4_unicode_520_ci'

Today, when importing a MySQL database, I encountered an error message: ERROR 1273 (HY000) at line 129: Unknown collation: 'utf8mb4_unicode_520_ci'. I looked and it seemed that other people had encountered the same problem, so I wrote it down for my reference next time I encounter it. If other readers encounter it, they can also refer to it.

The VPS host installed the LNMP1.8 one-click package, and an error occurred when trying to import the database:

 [root@Server ~]# mysql -u -p.net < blog.sql
ERROR 1273 (HY000) at line 129: Unknown collation: 'utf8mb4_unicode_520_ci'

The solution is also very simple. Open the database with an editor and replace all the "utf8mb4_unicode_520_ci" characters in the database with "utf8mb4_unicode_ci", then import it again and there will be no problem.

<<:  DediPath July Promotion: 50% off all VPS/HybridServers/Dedicated Servers, multiple data centers in Los Angeles/San Jose, etc.

>>:  Migrate WHM/cPanel data to DA (DirectAdmin)

Recommend

Analysis on the Evolution of Home Wi-Fi Transmission Network Technology

Author: Tang Xiangming, Unit: China Mobile Smart ...

In the next ten years, the WiFi module market will usher in rapid growth

According to market research by Market.us, the gl...

Have you learned how to configure multiple public IP addresses?

background For some customers working on video an...

An article to introduce you to network protocols

Author | Cai Zhuliang 1. Directory Network Protoc...

How intermittent-link ribbon fiber revolutionizes the communications industry

Fiber optic technology has revolutionized communi...