Can't correct restore the sql with Chinese Info.
Bug #817873 reported by
yangdehua
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Data Dumper |
New
|
Undecided
|
Unassigned |
Bug Description
version 0.2.3 and mydumper 0.5
when i use mydumper and myloader , i was surprised that there is no any options to choose character set .
mysql and mysqldump can allowe us to choose the character set.
I am an user of MySQL in China. The Chinese contents we used to using GBK to restore data.
When i tried to use mydumper to dump data, it does well. But when i used myloader to restore the record. I found something wrong. MySQL would tell that the sql file had some error synax .
So i modified the mydumper.c and myloader.c , corrected the code " mysql_query(
The source code is " mysql_query(
Hi,
Using the binary character set is intentional, it means there is no translation of the data during dump or restore so the data should be preserved in the correct character set.
This is a bug in myloader, but I think there may be a better way to fix it so that the user doesn't need to specify character set. I will look into it.