15.7.7.2 SHOW BINLOG EVENTS Statement (original) (raw)

15.7.7.2 SHOW BINLOG EVENTS Statement

SHOW BINLOG EVENTS
   [IN 'log_name']
   [FROM pos]
   [LIMIT [offset,] row_count]

Shows the events in the binary log. If you do not specify'_`logname`_', the first binary log is displayed. SHOW BINLOG EVENTS requires the REPLICATION SLAVE privilege.

The LIMIT clause has the same syntax as for the SELECT statement. SeeSection 15.2.13, “SELECT Statement”.

SHOW BINLOG EVENTS displays the following fields for each event in the binary log:

For compressed transaction payloads, theTransaction_payload_event is first printed as a single unit, then it is unpacked and each event inside it is printed.

Some events relating to the setting of user and system variables are not included in the output from SHOW BINLOG EVENTS. To get complete coverage of events within a binary log, use mysqlbinlog.

SHOW BINLOG EVENTS does_not_ work with relay log files. You can useSHOW RELAYLOG EVENTS for this purpose.