Spec-Zone .ru
спецификации, руководства, описания, API

13.7.5.2. SHOW BINARY LOGS Syntax

SHOW BINARY LOGSSHOW MASTER LOGS

Lists the binary log files on the server. This statement is used as part of the procedure described in Section 13.4.1.1, "PURGE BINARY LOGS Syntax", that shows how to determine which logs can be purged.

mysql> SHOW BINARY LOGS;+---------------+-----------+| Log_name      | File_size |+---------------+-----------+| binlog.000015 |    724935 || binlog.000016 |    733481 |+---------------+-----------+

SHOW MASTER LOGS is equivalent to SHOW BINARY LOGS.

In MySQL 5.6.5 and earlier, the SUPER privilege was required to use this statement. Starting with MySQL 5.6.6, a user with the REPLICATION CLIENT privilege may also execute this statement.