Bug #50460 | Grant and/or revoke not replicating if not connected to base `mysql` | ||
---|---|---|---|
Submitted: | 20 Jan 2010 0:46 | Modified: | 21 Jan 2010 6:17 |
Reporter: | Paul Pech | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.1.36 | OS: | Linux (openSuSE 11.2) |
Assigned to: | CPU Architecture: | Any | |
Tags: | grant revoke replication |
[20 Jan 2010 0:46]
Paul Pech
[20 Jan 2010 4:53]
Valeriy Kravchuk
Please, send my.cnf file content from master and slave.
[20 Jan 2010 20:59]
Paul Pech
my.cnf for the master server
Attachment: my.cnf.master (application/x-master-page, text), 1.37 KiB.
[20 Jan 2010 20:59]
Paul Pech
my.cnf for the slave server
Attachment: my.cnf.slave (application/octet-stream, text), 1.37 KiB.
[20 Jan 2010 21:07]
Paul Pech
Regarding the my.cnf files: Both servers are bin-logging and the slave server is configured with a "change master to..." command to connect to the master server. The master server and the slave server are in a circular replication setup, with heartbeat and virtual IP addresses making sure that clients can only connect to one of the servers. This means server1 (dbserv1) is master to server2 (dbserv1-1) while server2 (dbserv1-1) is master to server1 (dbserv1). At any given time, clients can only connect to either server1 or server2. This setup has been working with different versions of MySQL for more than three years (and don't suspect it to be responsible for the grant/revoke problem described earlier). We first encountered the grant/revoke issue after changing our privilege system from direct inserts into db `mysql` to the grant/revoke mechanism.
[21 Jan 2010 6:17]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Please read at http://dev.mysql.com/doc/refman/5.1/en/replication-rules-db-options.html: -----<q>----- For binary logging, the steps involved are listed here: 1. Are there any --binlog-do-db or --binlog-ignore-db options? * Yes. Continue to step 2. * No. Log the statement and exit. 2. Is there a default database (has any database been selected by USE)? * Yes. Continue to step 3. * No. Ignore the statement and exit. -----</q>----- So no statement will be written into binary log if you have binlog-ignore-db and didn't issue USE db