| Bug #86447 | mysqlbinlog with rewrite-db flag does not handle CREATE/DROP database correctly | ||
|---|---|---|---|
| Submitted: | 24 May 2017 20:51 | Modified: | 9 Jun 2017 10:02 |
| Reporter: | Tom Kubit | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
| Version: | 5.7.13+, 5.7.18 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | mysqlbinlog, rewrite-db | ||
[24 May 2017 20:51]
Tom Kubit
[9 Jun 2017 10:02]
MySQL Verification Team
Hello Tom, Thank you for the report. Thanks, Umesh
[19 Jun 2017 12:16]
Matthew Lord
This has always been the designed and documented behavior: https://dev.mysql.com/doc/refman/5.5/en/replication-options-slave.html#option_mysqld_repli... https://dev.mysql.com/doc/refman/5.7/en/replication-options-slave.html#option_mysqld_repli... "Only statements involving tables are affected (not statements such as CREATE DATABASE, DROP DATABASE, and ALTER DATABASE)" Moving this to a feature request.
[6 Jul 2017 21:33]
Matthew Lord
Sorry, I misunderstood. The issue at question is not this server option: https://dev.mysql.com/doc/refman/5.7/en/replication-options-slave.html#option_mysqld_repli... But rather this mysqlbinlog client option: https://dev.mysql.com/doc/refman/5.7/en/mysqlbinlog.html#option_mysqlbinlog_rewrite-db In light of this, the current behavior is NOT documented. And from a user perspective, the current behavior is not expected and a bug--it can result in serious data loss. Changing the Severity back to mark it as a Bug rather than a Feature Request.
