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

5G technology has just emerged, so don’t rush to pour cold water on it

After 3G and 4G have successively gone from unfam...

ZgoCloud: $14/quarter-AMD Ryzen9, 1GB memory, 30G NVMe, Osaka, Japan data center

ZgoCloud domain name registration started in Apri...

Rethinking data center cabling practices to improve energy efficiency

According to a study by researchers from the U.S....

[Black Friday] TNAHosting: $9/year KVM-1GB/15G SSD/5TB/Chicago Data Center

TNAHosting's Black Friday promotion includes ...

Improving efficiency and reliability using SDN in multi-layer networks

Abstraction is a big issue in Software Defined Ne...

Enterprise IoT threatens to undermine cloud and IT security

We had so much trouble getting security back to n...

Will Wi-Fi 7 be a revolution?

A Google search for “famous members of Generation...

Why does the cluster need an Overlay network?

Engineers who have a little knowledge of computer...

Site24x7 enters China's cloud monitoring market and opens Shanghai data center

On March 12, 2019, Zoho Corporation announced the...