Bug #9756 | mysql client failing on dumps containing certain \ sequences | ||
---|---|---|---|
Submitted: | 8 Apr 2005 13:18 | Modified: | 26 Apr 2005 16:16 |
Reporter: | Axel Schwenke | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S1 (Critical) |
Version: | 5.0.4 | OS: | Linux (Linux) |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[8 Apr 2005 13:18]
Axel Schwenke
[25 Apr 2005 15:10]
Axel Schwenke
I added an SQL dump to trigger the bug. This dump was done with --net_buffer_length=4KB. The command line client fails on line #503 - BUT: there is no \' sequence in this line. There are several of those before (the last one in line #498) and others later (next in line #508) in the dump.
[26 Apr 2005 10:43]
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/internals/24307
[26 Apr 2005 10:48]
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/internals/24308
[26 Apr 2005 15:27]
Ramil Kalimullin
fixed in 5.0.6
[26 Apr 2005 16:16]
Paul DuBois
Noted in 5.0.6 changelog.
[8 Nov 2007 16:00]
Christian Kirsch
I just stumbled upon the same (or a similar?) bug trying to restore a dump from a Linux machine running 5.0.33 (compiled from source) on an Intel-Mac running 5.0.45 (precompiled from MySQL, PKG format). Using a max-allowed-packet of 16M, I get ERROR at line 903: Unknown command '\''. If I set the max-allowed-packet to 1M, I get ERROR at line 906: Unknown command '\''. (The error now seems to be three lines further down). Setting the packet size to 512k, I see ERROR at line 121: Unknown command '\0'. -- again, another line number and another offending character this time. The error happens if I pipe the output of mysqldump directly into mysql or if I first save it in a file and then feed that file to mysql.
[8 Aug 2008 11:48]
Thomas Witt
I can second that. Same problem when trying to go with a large mysqldump from 5.0.26 to 5.0.51: ERROR at line 2248: Unknown command '\0'. We will now try to destore the whole file databasewise.
[13 May 2009 8:16]
Colin Draper
I have exactly this issue when using 5.1.34 a on windows platform. It is the database used for Mantis bug tracking, the maximum upload size is 5M The dump file looks to be correct with escape sequences seem to be correctly placed, however trying to recover the dump always fails on the same statement. Setting the max_allowed_packet to 10M still does not solve the problem. The dump file is about 7G and the table being reloaded is the bug_file_table which contains a longblob type (file content) hence the large size. I have had to ditch mysqldump as a backup methodology as it is not reliable to recover the database.
[5 Jul 2011 9:26]
Vlad Safronov
got the same error on 5.1.35, Linux.