Inspect events in the relay log. This statement displays replication events from the relay log on a replica server.
On , this command shows the events in the . If 'log_name' is not specified, the first relay log is shown.
Syntax for the LIMIT clause is the same as for .
Using the LIMIT clause is highly recommended because the SHOW RELAYLOG EVENTS command returns the complete contents of the relay log, which can be quite large.
This command does not return events related to setting user and system variables. If you need those, use .
On the primary, this command does nothing.
Requires the privilege.
Requires the privilege (>= ), the privilege (>= ) or the privilege (<= ).
If there is only one nameless primary, or the default primary (as specified by the system variable) is intended, connection_name can be omitted. If provided, the SHOW RELAYLOG statement will apply to the specified primary. connection_name is case-insensitive.
The FOR CHANNEL keyword was added for MySQL compatibility. This is identical as using the channel_name directly after SHOW RELAYLOG.
FOR CHANNEL is not available.
This page is licensed: CC BY-SA / Gnu FDL
SHOW RELAYLOG ['connection_name'] EVENTS
[IN 'log_name'] [FROM pos] [LIMIT [offset,] row_count]
[ FOR CHANNEL 'channel_name']