Product Solutions Support
Try MemSQL

SHOW REPLICATION STATUS

Shows the list of all connections between the replication master and slave databases.

SHOW REPLICATION STATUS

Notes

Output

Column Explanation
Role The replication role of the local database copy. Possible values are async slave, sync slave, and master.
Database The name of the database being replicated. The database name is the same on the primary and secondary clusters, except for the sharding database which is called sharding_[hash] on the secondary cluster.
MasterURI The URI for the master database instance. The format is host:port/database_name.
MasterPosition The current log file position of data that of the primary cluster. NetworkPosition uses the format [ordinal]:[byte offset into log file].
SlaveURI The URI for the slave database instance. The format is host:port/database_name.
Connected The current state of the connection between master and slave instances of the database. Possible values are yes and no.
NetworkPosition The current log file position of data that has been downloaded to the secondary cluster. MemSQL names log files in the format [database name]_log_[ordinal]. NetworkPosition uses the format [ordinal]:[byte offset into log file].
SlaveState The state of the slave instance of the database. Possible values are replicating and replication paused.
ReplayPosition The current log file position of data that has been loaded into memory on the secondary cluster. NetworkPosition uses the format [ordinal]:[byte offset into log file].
MasterCommits The number of transactions committed on the master database instance.
SlaveCommits The number of transactions committed on the slave database instance.
Info

This MemSQL feature is only available in MemSQL Enterprise Edition. MemSQL Enterprise Edition includes 24x7 support and several enterprise-only features for critical deployments. For more information about MemSQL Community and MemSQL Enterprise, see the MemSQL Editions page.

Example

memsql> SHOW REPLICATION STATUS;
+-------------+-----------------------------+--------------+-------------------------------+-----------+-----------------+------------------+----------------+
| Role        | MasterURI                   | MasterLogPos | SlaveURI                      | Connected | SlaveNetworkPos | SlaveReplayState | SlaveReplayPos |
+-------------+-----------------------------+--------------+-------------------------------+-----------+-----------------+------------------+----------------+
| async slave | users-instance-A:3306/users | 0:8870       | localhost:3306/users          | yes       | 0:8870          | replicating      | 0:8870         |
+-------------+-----------------------------+--------------+-------------------------------+-----------+-----------------+------------------+----------------+
Was this article useful?