SHOW RELAYLOG EVENTS [IN 'log_name'] [FROM pos] [LIMIT [offset,] row_count] [channel_option] channel_option: FOR CHANNEL channel
Shows the events in the relay log of a replica. If you do not
first relay log is displayed. This statement has no effect on
SHOW RELAYLOG EVENTS requires the
REPLICATION SLAVE privilege.
SHOW RELAYLOG EVENTS
LIMIT clause could start a very
time- and resource-consuming process because the server
returns to the client the complete contents of the relay log
(including all statements modifying data that have been
received by the replica).
clause enables you
to name which replication channel the statement applies to.
clause applies the
statement to a specific replication channel. If no channel is
named and no extra channels exist, the statement applies to the
When using multiple replication channels, if a
SHOW RELAYLOG EVENTS statement
does not have a channel defined using a
clause an error is
generated. See Section 17.2.2, “Replication Channels” for more
SHOW RELAYLOG EVENTS displays the
following fields for each event in the relay log:
The name of the file that is being listed.
The position at which the event occurs.
An identifier that describes the event type.
The server ID of the server on which the event originated.
The value of
End_log_posfor this event in the source's binary log.
More detailed information about the event type. The format of this information depends on the event type.
For compressed transaction payloads, the
Transaction_payload_event is first printed as
a single unit, then it is unpacked and each event inside it is