A
A
Anton Pashchenko2022-04-19 22:34:00
MySQL
Anton Pashchenko, 2022-04-19 22:34:00

How to do mysqldump with session parameter SET SESSION collation_connection := 'utf8_unicode_ci';?

What key to specify or how else to dump the database with COLLATION_NAME different from the system ones? I need to dump the database with a specific COLLATION_NAME, not the system default.
Now I have:

mysqldump: Error: 'Illegal mix of collations (utf8_general_ci,COERCIBLE) and (utf8_unicode_ci,COERCIBLE) for operation '='' when trying to dump tablespaces

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2022-04-20
@Rsa97

mysqldump doesn't do any sorting, so specifying collation doesn't make sense for it. The dump will still contain those parameters of the database, tables and columns with which they were created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question