All pages
Powered by GitBook
1 of 1

SHOW MASTER STATUS

Syntax

SHOW BINLOG STATUS
SHOW MASTER STATUS

Description

Provides status information about the binary log files of the primary.

This statement requires the BINLOG MONITOR privilege.

This statement requires the SUPER privilege and the REPLICATION_CLIENT privilege.

To see information about the current GTIDs in the binary log, use thegtid_binlog_pos variable.

Example

SHOW BINLOG STATUS;
+--------------------+----------+--------------+------------------+
| File               | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+--------------------+----------+--------------+------------------+
| mariadb-bin.000016 |      475 |              |                  |
+--------------------+----------+--------------+------------------+
SELECT @@global.gtid_binlog_pos;
+--------------------------+
| @@global.gtid_binlog_pos |
+--------------------------+
| 0-1-2                    |
+--------------------------+

See Also

  • MariaDB replication

  • Using and Maintaining the Binary Log

  • The gtid_binlog_pos variable

This page is licensed: GPLv2, originally from fill_help_tables.sql