Solution for mysqldump Backup Chinese Garbled Text

If the character set on the MySQL server is latin1, the Chinese characters in the mysqldump output will be garbled! A simple solution is to add the default character set option. For example:

mysqldump -h 127.0.0.1 -P 3307 -u username --default-character-set=gbk -p databasename > dumpfile.txt

Parameter explanation:

Original Link: https://snowpeak.blog.csdn.net/article/details/2621265