Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 35.6Mb
PDF (A4) - 35.6Mb
PDF (RPM) - 34.6Mb
EPUB - 8.7Mb
HTML Download (TGZ) - 8.4Mb
HTML Download (Zip) - 8.5Mb
HTML Download (RPM) - 7.3Mb
Eclipse Doc Plugin (TGZ) - 9.3Mb
Eclipse Doc Plugin (Zip) - 11.4Mb
Man Pages (TGZ) - 202.2Kb
Man Pages (Zip) - 307.4Kb
Info (Gzip) - 3.3Mb
Info (Zip) - 3.3Mb
Excerpts from this Manual

MySQL 5.7 Reference Manual  /  ...  /  SHOW RELAYLOG EVENTS Syntax SHOW RELAYLOG EVENTS Syntax

   [IN 'log_name'] [FROM pos] [LIMIT [offset,] row_count]

Shows the events in the relay log of a replication slave. If you do not specify 'log_name', the first relay log is displayed. This statement has no effect on the master.

The LIMIT clause has the same syntax as for the SELECT statement. See Section 14.2.9, “SELECT Syntax”.


Issuing a SHOW RELAYLOG EVENTS with no 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 slave).


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

User Comments
  Posted by dade brandon on September 10, 2016
This article hasn't been updated to include command syntax for multi-source replication, for example:

mysql> show relaylog events in "5-4-phx-relay-bin-6@002d4@002dphx.000178" from 46423194 limit 4;
ERROR 3079 (HY000): Multiple channels exist on the slave. Please provide channel name as an argument.

Through trial and error I found that the 'for channel ".."' must go after any limit clause.
Sign Up Login You must be logged in to post a comment.