Answer the question
In order to leave comments, you need to log in
How to recode a database?
I welcome everyone!
Recently, I started putting down "seo" titles on the site in the form "main | cool site"
because of the symbol " | " all pages disappeared, in the admin panel (modx revo), everything is displayed normally on the site,
got into the database, and saw that the encoding was latin1_shwedish_ci
exported all tables, copied a piece of corrupted text:
Answer the question
In order to leave comments, you need to log in
You now have text in utf-8 in the base with latin1_shwedish encoding
And sometimes it "breaks".
Do a dump without specifying an encoding
mysqldump --skip-opt --set-charset --skip-set-charset
(here you also need to specify the database and login password) Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question