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:
None 
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 ]
Description:
Situation: Running binary logging with my.cnf commands:

log-bin=/mysql/logs/logbin
binlog-do-db=shakti
binlog-do-db=prometheus

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:

http://dev.mysql.com/doc/mysql/en/Binary_log.html

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:
http://dev.mysql.com/doc/mysql/en/Binary_log.html
[3 Nov 2004 14:15] MySQL Verification Team
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
    http://www.mysql.com/doc/en/Installing_source_tree.html