To check whether a MySQL dual-master database system is synchronised, follow the instruction below:
In a dual-master system, there are 2 servers, the primary and the secondary server.
1. On the primary server, run command prompt with Administrator's privilege, change to "C:\Program Files\Deepnet DualShield\mysql\bin"
![DualShield MFA Platform > How to check the status of a MySQL Dual-Master Replication system [L] > Picture4.png](/download/attachments/143622258/Picture4.png?version=1&modificationDate=1723117004703&api=v2)
2. Enter the command below to login into MySQL console. You need your MySQL account which was set up while DualShield was initially installed.
![DualShield MFA Platform > How to check the status of a MySQL Dual-Master Replication system [L] > Picture3.png](/download/attachments/143622258/Picture3.png?version=1&modificationDate=1723117005192&api=v2)
3. Enter the command SHOW MASTER STATUS;
4. Enter the command SHOW SLAVE STATUS\G
![DualShield MFA Platform > How to check the status of a MySQL Dual-Master Replication system [L] > Picture6.png](/download/attachments/143622258/Picture6.png?version=1&modificationDate=1723117005319&api=v2)
Repeat Step 1-4 on the secondary server:
![DualShield MFA Platform > How to check the status of a MySQL Dual-Master Replication system [L] > Picture4.png](/download/attachments/143622258/Picture4.png?version=1&modificationDate=1723117004703&api=v2)
![DualShield MFA Platform > How to check the status of a MySQL Dual-Master Replication system [L] > Picture3.png](/download/attachments/143622258/Picture3.png?version=1&modificationDate=1723117005192&api=v2)
![DualShield MFA Platform > How to check the status of a MySQL Dual-Master Replication system [L] > Picture7.png](/download/attachments/143622258/Picture7.png?version=1&modificationDate=1723117005352&api=v2)
![DualShield MFA Platform > How to check the status of a MySQL Dual-Master Replication system [L] > Picture8.png](/download/attachments/143622258/Picture8.png?version=1&modificationDate=1723117005420&api=v2)
Now, cross check the results. Match "Exec_Master_Log_Pos" on the primary server against the "log-bin" file "position" on the secondary server, and vise versa.
![DualShield MFA Platform > How to check the status of a MySQL Dual-Master Replication system [L] > image2016-8-12 22:15:40.png](/download/attachments/143622258/image2016-8-12%2022%3A15%3A40.png?version=1&modificationDate=1723117005523&api=v2)
If they all match and both "Slave_IO_Running" and "Slave_SQL_Running" status are "Yes", then the dual-master database system is in sync.