Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual Excerpts from this Manual SHOW MASTER STATUS Syntax


This statement provides status information about the binary log files of the master. It requires either the SUPER or REPLICATION CLIENT privilege.


*************************** 1. row ***************************
             File: master-bin.000002
         Position: 1307
     Binlog_Do_DB: test
 Binlog_Ignore_DB: manual, mysql
Executed_Gtid_Set: 3E11FA47-71CA-11E1-9E33-C80AA9429562:1-5
1 row in set (0.00 sec)

When global transaction IDs are in use, Executed_Gtid_Set shows the set of GTIDs for transactions that have been executed on the master. This is the same as the value for the gtid_executed system variable (named gtid_done prior to MySQL 5.6.9) on this server, as well as the value for Executed_Gtid_Set in the output of SHOW SLAVE STATUS on this server.

Download this Manual
User Comments
  Posted by John Doe on January 4, 2008
"show slave status" on a master returns empty set, but "show master status" on a slave doesn't.

Seems odd to stash this node only under "SQL Statements for Controlling Master Servers." It means _something_ in the context of "SQL Statements for Controlling Slave Servers," but what?

Sign Up Login You must be logged in to post a comment.