Bug #6391 binlog-do-db rules ignored
Submitted: 2 Nov 2004 23:19 Modified: 6 Dec 2004 11:44
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:4.0.21 OS:FreeBSD (FreeBSD 4.10)
Assigned to: Mats Kindahl CPU Architecture:Any

[2 Nov 2004 23:19] [ name withheld ]
Situation: Running binary logging with my.cnf commands:


then, using the mysql command line client, without selecting a database, issue the command:

create database bob;

The create database command is written to the binlog, in contradiction to the rules specified at:


This breaks replication if another database 'bob' exists on a slave that is replicating from this master.

How to repeat:
As above

Suggested fix:
Change the code to follow the rules specified at:
[3 Nov 2004 14:15] Victoria Reznichenko
Verified with 4.0.23-debug-log
[6 Dec 2004 11:44] Mats Kindahl
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at