Bug #16217 | corruption importing binlogs using cp932 client charset | ||
---|---|---|---|
Submitted: | 5 Jan 2006 8:37 | Modified: | 13 Mar 2006 21:26 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1.16 | OS: | Linux (Linux) |
Assigned to: | Andrei Elkin | CPU Architecture: | Any |
[5 Jan 2006 8:37]
Shane Bester
[1 Feb 2006 19:03]
Andrei Elkin
Managed to reproduce both artifacts in 4.1.19 and empty recovery of tbl1 by client with utf8 charset in 5.0.19.
[8 Feb 2006 8:30]
Andrei Elkin
About appropriate charset for recovery invocation. Actually this one is exactly the charset of the server. In the last example theinvocation line is ok as long as mysqld is launched with --default-character-set=utf8. Shane, you are welcome to discussion though I think "incorrect recovery" is not a bug but rather subtle feature. Commiting my fix soon for review.
[9 Feb 2006 14:23]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/2369
[10 Feb 2006 13:12]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/2443
[12 Feb 2006 6:40]
Alexander Barkov
Looks ok to push for me.
[15 Feb 2006 11:14]
Andrei Elkin
Fixed in 5.2.0-alpha, 5.1.7-beta, 5.0.19, 4.1.19. Leaving todo remarks. Regarding to the new feature of mysql client still the most flexibale approach is to parse `SET vars' statements, where vars are those that affect client charset. Such approach would make `charset_name' redundant (better to say its explicit invocation) as useless would be a change in mysqlbinlog made for this bug. Unfortunately this way requires rather big changes in mysql client due to parsing.
[13 Mar 2006 21:26]
Mike Hillyer
Documented in 4.1.19, 5.0.19, 5.1.7 changelogs: <listitem> <para> New <literal>charset</literal> command added to <command>mysql</command> command-line client. By typing <literal>charset <replaceable>name</replaceable></literal> or <literal>\C <replaceable>name</replaceable></literal> (such as <literal>\C UTF8</literal>), the client character set can be changed without reconnecting. (Bug #16217) </para> </listitem> Also updated mysql client commands section of refman.