| Bug #34732 | mysqlbinlog does not print default values for auto_increment variables | ||
|---|---|---|---|
| Submitted: | 21 Feb 17:02 | Modified: | 26 Mar 20:11 |
| Reporter: | Sven Sandberg | ||
| Status: | Closed | ||
| Category: | Server: Replication | Severity: | S2 (Serious) |
| Version: | 5.0, 5.1 | OS: | Any |
| Assigned to: | Sven Sandberg | Target Version: | 5.0+ |
| Tags: | mysqlbinlog, auto_increment, auto_increment_increment, auto_increment_offset, replication | ||
| Triage: | D3 (Medium) | ||
[21 Feb 17:02]
Sven Sandberg
[27 Feb 16:25]
Sven Sandberg
I will fix this in 5.1 while fixing BUG#31168.
[27 Feb 19:39]
Omer BarNir
workaround: {echo 'set auto_increment_increment = <your value here>'; cat
binlog-file.NNNN; } | mysql
[17 Mar 5:00]
Sven Sandberg
The patch pushed for BUG#31168 fixes this bug too.
[25 Mar 12:23]
Bugs System
Pushed into 5.1.24-rc
[26 Mar 20:00]
Bugs System
Pushed into 6.0.5-alpha
[26 Mar 20:11]
Jon Stephens
Documented bugfix in the 5.1.24 and 6.0.5 changelogs as follows:
mysqlbinlog did not output the values of auto_increment_increment and
auto_increment_offset when both were equal to their
default values (for both of these variables, the default is 1). This
meant that a binary log recorded by a client using the defaults for both
variables and then replayed on another client using its own values for
either or both of these variables produced erroneous results.
[2 Apr 22:13]
Jon Stephens
Also noted in the 5.1.23-ndb-6.3.11 changelog.
