Bug #57304 | mysqldump fails to dump in latin-1 when table created in utf-8 | ||
---|---|---|---|
Submitted: | 7 Oct 2010 10:16 | Modified: | 12 Nov 2010 6:02 |
Reporter: | SaiKumar V | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: mysqldump Command-line Client | Severity: | S3 (Non-critical) |
Version: | 5.1.52, 5.5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | mysqldump |
[7 Oct 2010 10:16]
SaiKumar V
[7 Oct 2010 10:23]
SaiKumar V
mtr based test file
Attachment: new.txt (text/plain), 303 bytes.
[7 Oct 2010 12:38]
Susanne Ebrecht
I am not able to repeat this. Here is my test: DROP SCHEMA IF EXISTS bug57304; CREATE SCHEMA bug57304 CHARSET utf8; USE bug57304; SET NAMES utf8; CREATE TABLE täböll(i SERIAL, v VARCHAR(255)); INSERT INTO täböll(v) VALUES('Bär'); INSERT INTO täböll(v) VALUES('Änderung'); INSERT INTO täböll(v) VALUES('Übung'); INSERT INTO täböll(v) VALUES('Lüge'); INSERT INTO täböll(v) VALUES('Öffnung'); INSERT INTO täböll(v) VALUES('Möglichkeit'); INSERT INTO täböll(v) VALUES('Gården'); INSERT INTO täböll(v) VALUES('Maße'); INSERT INTO täböll(v) VALUES('Crêpes'); INSERT INTO täböll(v) VALUES('déjà vu'); $ mysqldump --default-character-set=latin1 bug57304 > bug57304.dump $ file bug57304.dump bug57304.dump: ISO-8859 text I also tried to restore: $ mysql --default-character-set=latin1 < bug57304.dump My table named "täböll" is totally correct utf8 encoded. I tested with MySQL 5.1.52 on Ubuntu. Which OS did you take?
[7 Oct 2010 14:07]
SaiKumar V
Hi, i have reproduced the bug( also with your testcase) on Linux :- Red Hat Enterprise Linux Server release 5.1 (Tikanga) & Windows XP Professional Editions (SP2). Please let me know if you require and additional details,
[7 Oct 2010 14:46]
SaiKumar V
Updated comments. The bug is not reproducible on Linux, my test database seems to be corrupt, it was crashing the dump. I am having difficutly with your testcase on Windows, can you please verify this at your end. (windows xp professioanl edition) (sp2). Orginally the problem appeared on Windows.
[7 Oct 2010 15:05]
SaiKumar V
Update 2: I have reproduced the defect with your testcase on Windows (XP Professional SP2). There is no crash with your testcase on windows, but fails to create the mysqldump file for the utf-8 table.
[12 Oct 2010 6:02]
Susanne Ebrecht
Hello Saikumar, how did you test it on Windows? Windows is not using/supporting utf8. To test this on Windows you need first to look which encoding your Windows is using. You will figure out this by using: CHCP For creating the tables correct you need to use: SET NAMES whatever_codepage_your_windows_is_using For example when your Windows is using codepage 850 then you need to say: SET NAMES cp850; CREATE TABLE ...;
[13 Nov 2010 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".