1. Check the synchronization status of A and B databasesEnter the following command and a lot of information will appear, but the main thing is to make sure that both the Slave_IO_Running and Slave_SQL_Running fields show yes. MySQL> show slave status\G; 2. Check the synchronization thread status of servers A and BEnter the following command, MySQL > show processlist\G If the command window has the three threads shown in the figure below, the configuration is successful. If any thread is missing, restart the MySql service on the primary and backup machines, and then enter the above command in the MySql command window to check whether there are the three threads marked in the figure below. If these three threads are not present, please recheck whether the configuration is correct.
mysql> show processlist\G; *************************** 1. row *************************** *** Omitted *** *************************** 2. row *************************** Id: 22 User: system user Host: connecting host db: NULL Command: Connect Time: 938775 State: Waiting for master to send event Info: NULL *************************** 3. row *************************** Id: 23 User: system user Host: db: NULL Command: Query Time: 748608 State: Slave has read all relay logs; waiting for more updates Info: NULL *************************** 4. row *************************** Id: 3691 User: slave Host: 1.2.3.3:54244 db: NULL Command: Binlog Dump Time: 70515 State: Master has sent all binlog to slave; waiting for more updates Info: NULL This is the end of this article about the implementation of MySQL master-slave status check. For more relevant MySQL master-slave status check content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Web page creation for beginners: Learn to use HTML's hyperlink A tag
>>: CSS achieves footer "bottom absorption" effect
When you see a class, what information do you wan...
Table of contents Basic selectors: Level selector...
Table of contents 1. Event Flow 1. Concept 2. DOM...
This article shares the specific code of JavaScri...
Let me first explain why the text is not vertical...
Table of contents Overview 1. Test for null value...
When a thread executes a DELAYED statement for a ...
Vue3.0 has been out for a while, and it is necess...
Table of contents 1. What is Function Anti-shake?...
Table of contents 1. Problem Description 2. Cause...
This article shares with you how to connect pytho...
This article shares the specific code of Vue usin...
CSS 3 animation example - dynamic effect of Tab b...
First is the idea We use the <input type="...
Here is a brief introduction to indexes: The purp...