SHOW BINARY LOGS
List the binary log files on the server. View the file names and sizes to monitor replication logs and manage disk usage.
Syntax
SHOW BINARY LOGS SHOW MASTER LOGSDescription
Lists the binary log files on the server. This statement is used as part of the procedure described in PURGE BINARY LOGS, that shows how to determine which logs can be purged.
This statement requires the BINLOG MONITOR privilege.
This statement requires the SUPER privilege and the REPLICATION_CLIENT privilege.
Examples
SHOW BINARY LOGS; +--------------------+-----------+ | Log_name | File_size | +--------------------+-----------+ | mariadb-bin.000001 | 19039 | | mariadb-bin.000002 | 717389 | | mariadb-bin.000003 | 300 | | mariadb-bin.000004 | 333 | | mariadb-bin.000005 | 899 | | mariadb-bin.000006 | 125 | | mariadb-bin.000007 | 18907 | | mariadb-bin.000008 | 19530 | | mariadb-bin.000009 | 151 | | mariadb-bin.000010 | 151 | | mariadb-bin.000011 | 125 | | mariadb-bin.000012 | 151 | | mariadb-bin.000013 | 151 | | mariadb-bin.000014 | 125 | | mariadb-bin.000015 | 151 | | mariadb-bin.000016 | 314 | +--------------------+-----------+This page is licensed: GPLv2, originally from fill_help_tables.sql
Last updated
Was this helpful?
.png?alt=media&token=7e7f4c73-9972-4e67-9a1a-74dc18591022&width=260&dpr=4&quality=100&sign=760f8d93&sv=2)
.png?alt=media&token=ee5a45b3-d05b-4bb5-97d0-0f25c5eeb110&width=260&dpr=4&quality=100&sign=12bc3702&sv=2)