Documentation Home
MySQL 5.6 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 28.7Mb
PDF (A4) - 28.7Mb
Man Pages (TGZ) - 189.1Kb
Man Pages (Zip) - 302.1Kb
Info (Gzip) - 2.8Mb
Info (Zip) - 2.8Mb
Excerpts from this Manual

MySQL 5.6 Reference Manual  /  ...  /  SHOW RELAYLOG EVENTS Statement SHOW RELAYLOG EVENTS Statement

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

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

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


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 replica).

SHOW RELAYLOG EVENTS displays the following fields for each event in the relay log:

  • Log_name

    The name of the file that is being listed.

  • Pos

    The position at which the event occurs.

  • Event_type

    An identifier that describes the event type.

  • Server_id

    The server ID of the server on which the event originated.

  • End_log_pos

    The value of End_log_pos for this event in the source's binary log.

  • Info

    More detailed information about the event type. The format of this information depends on the event type.


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.