Bug #68074 | Replication fails on the mysql.tables_priv table | ||
---|---|---|---|
Submitted: | 13 Jan 2013 20:39 | Modified: | 17 Jan 2013 20:00 |
Reporter: | Rogier van Staveren | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.5.27 | OS: | Linux (Slackware 14.0 64 bit) |
Assigned to: | CPU Architecture: | Any |
[13 Jan 2013 20:39]
Rogier van Staveren
[17 Jan 2013 20:00]
Sveta Smirnova
Thank you for the report. According to http://dev.mysql.com/doc/refman/5.5/en/grant-table-structure.html: "The Timestamp and Grantor columns currently are unused and are discussed no further here. " So this is in design yet and technically not a bug. But inconsistency is repeatable with both row and statement binary log format, so I set it to "Verified". I believe content of Grantor field is what returned by function USER(), therefore different on master and slave. I get slightly different inconsistency: include/master-slave.inc Warnings: Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. Note #### Storing MySQL user name or password information in the master.info repository is not secure and is therefore not recommended. Please see the MySQL Manual for more about this issue and possible alternatives. [connection master] set global binlog_format='row'; set binlog_format='row'; create table test(f1 int); CREATE USER 'adminuser'@'1%.0.0.1' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON *.* TO 'adminuser'@'1%.0.0.1' WITH GRANT OPTION; FLUSH PRIVILEGES; CREATE USER 'testuser'@'localhost'; GRANT USAGE ON *.* TO 'testuser'@'localhost'; GRANT SELECT ON `test`.`test` TO 'testuser'@'localhost'; FLUSH PRIVILEGES; show binlog events; Log_name Pos Event_type Server_id End_log_pos Info master-bin.000001 4 Format_desc 1 120 Server ver: 5.7.1-m11-debug-log, Binlog ver: 4 master-bin.000001 120 Query 1 219 use `test`; create table test(f1 int) master-bin.000001 219 Query 1 395 use `test`; CREATE USER 'adminuser'@'1%.0.0.1' IDENTIFIED BY PASSWORD '*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19' master-bin.000001 395 Query 1 557 use `test`; GRANT ALL PRIVILEGES ON *.* TO 'adminuser'@'1%.0.0.1' WITH GRANT OPTION master-bin.000001 557 Query 1 640 use `test`; FLUSH PRIVILEGES master-bin.000001 640 Query 1 749 use `test`; CREATE USER 'testuser'@'localhost' master-bin.000001 749 Query 1 888 use `test`; GRANT USAGE ON *.* TO 'testuser'@'localhost' master-bin.000001 888 Query 1 1043 use `test`; GRANT SELECT ON `test`.`test` TO 'testuser'@'localhost' master-bin.000001 1043 Query 1 1126 use `test`; FLUSH PRIVILEGES SELECT * FROM `mysql`.`tables_priv`; Host Db User Table_name Grantor Timestamp Table_priv Column_priv localhost test testuser test adminuser@localhost 0000-00-00 00:00:00 Select SELECT * FROM `mysql`.`tables_priv`; Host Db User Table_name Grantor Timestamp Table_priv Column_priv localhost test testuser test adminuser@1%.0.0.1 0000-00-00 00:00:00 Select SELECT * FROM `mysql`.`tables_priv`; Host Db User Table_name Grantor Timestamp Table_priv Column_priv localhost test testuser test adminuser@localhost 0000-00-00 00:00:00 Select
[17 Jan 2013 20:01]
Sveta Smirnova
test case for MTR
Attachment: rpl_bug68074.test (application/octet-stream, text), 712 bytes.