D
D
Dmitry Zhukov2018-06-10 13:28:34
MySQL
Dmitry Zhukov, 2018-06-10 13:28:34

Why does an error occur when trying to change the table encoding?

There is a WordPress database, the tables of which have a different encoding - utf8mb4_unicode_520_ci, utf8_general_ci, utf8mb4_general_ci
I want to convert everything at once to utf8_general_ci
I make a request:

ALTER TABLE `schools`.`wp_10_ap_activity` CONVERT TO CHARACTER SET utf8_general_ci COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE `schools`.`wp_10_commentmeta` CONVERT TO CHARACTER SET utf8_general_ci COLLATE utf8mb4_unicode_520_ci;
....

But there is an error #1115 - Unknown encoding 'utf8_general_ci'
MySQL Version 5.6

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-06-10
@dimonchik2013

utf8mb4 is wider than just utf8
study

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question