Bug #66708 | CREATE / DROP SERVER statements are not written to the binary log | ||
---|---|---|---|
Submitted: | 5 Sep 2012 16:17 | Modified: | 7 Sep 2012 12:13 |
Reporter: | Elena Stepanova | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.1.62, 5.5.27, 5.6.6 | OS: | Any |
Assigned to: | Jon Stephens | CPU Architecture: | Any |
[5 Sep 2012 16:17]
Elena Stepanova
[5 Sep 2012 17:09]
Sveta Smirnova
Thank you for the report. This was discussed in bug #25705: it was fixed, but then considered to not push the fix. But I still verify it as documentation bug, because this decision was not reflected at all. This should be either in federated or replication limitation part.
[5 Sep 2012 17:27]
Elena Stepanova
Hi Sveta, Public comments in the bug #25705 finish with 'Push to Betony or Celosia unless Staale objects' -- apparently there was an objection, but it isn't visible. Would it be possible to make the reasoning public, either in that bug, or in this one, or in the docs? My best guess is that it was argued to be useless for replication; however, the binary log is used not only for replication, but also as a backup, and an attempt to restore its contents will fail in absence of the recorded CREATE statement. If there were other considerations, it would be interesting to know them.
[7 Sep 2012 12:13]
Jon Stephens
In 5.1, these statements are written to the binlog only when binlog_format=STATEMENT (and not ROW or MIXED). In 5.5+, they are never logged. We do not anticipate this this behaviour will change. Updated CREATE|ALTER|DROP SERVER Syntax sections of 5.1+ Manual, and added new subsection to Replication Issues with this info. Closed.
[11 Sep 2012 16:01]
Jon Stephens
Preceding should have had, "In 5.1, these statements are written to the binlog only when binlog_format=ROW (and not STATEMENT or MIXED)." The 5.1 Manual also contained the error and has been corrected.