MySQL ERROR 1273 (HY000) at line 217: Unknown collation: ‘utf8mb4_0900_ai_ci’

This morning i got error notification when try to importing database from the old server to the new server. I use MySQL for the old server and choose to use MariaDB in new server

To solve this problem you only need to change utf8mb4_0900_ai_ci to utf8mb4_unicode_ci

You can just run one line of code to solve this problem

sed -e ‘s/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g’ -i file.sql

After do that, you can impor the MySQL database to MariaDB without any problem.

Thank you stackexchange & panduaji! It’s help me solve problem in new server

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Pandu Aji Wirawan
Pandu Aji Wirawan

Written by Pandu Aji Wirawan

a professional jobless who love to share stories on the blog. Another blog is panduaji.com and panduaji.net

No responses yet

Write a response