L
L
Luckymo2021-02-17 20:29:22
MySQL
Luckymo, 2021-02-17 20:29:22

How to change the encoding mysql does not understand Russian?

Please help, I created the database, everything works fine, but the Russian language does not understand! writes scribbles, everything is ok with English
how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-02-17
@Luckymo

Something like this:

ALTER DATABASE <database_name> CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

ALTER TABLE <table_name> CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question