All pages
Powered by GitBook
1 of 1

Loading...

SHOW MASTER STATUS

View the current status of the primary server's binary log. This statement returns the current log file name and position for replication synchronization.

Syntax

SHOW [MASTER | BINLOG] STATUS
SHOW MASTER STATUS

Description

Provides status information about the files of the primary.

This statement requires the privilege.

This statement requires the privilege and the privilege.

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

Example

See Also

This page is licensed: GPLv2, originally from

binary log
BINLOG MONITOR
SUPER
REPLICATION_CLIENT
GTIDs
gtid_binlog_pos
MariaDB replication
Using and Maintaining the Binary Log
The gtid_binlog_pos variable
fill_help_tables.sql
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                    |
+--------------------------+