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

Is 5G not the only option for the Internet of Things?

While the Internet of Things has the potential to...

How does network automation simplify network operations?

In today's rapidly evolving digital environme...

What’s next after the first 5G standard is released?

On June 14, Beijing time, the International Mobil...

How low-code platforms enable machine learning

【51CTO.com Quick Translation】 [[425497]] Low-code...

5G is here, how far is 6G?

"In the 6G era, hundreds of high-definition ...

What is the value of 5G at the edge?

A lot of people have been questioning the value o...

Yunhai: A complete cloud server management system developed based on JAVA+NET

As we know, Standard Interconnect is a business t...