Tôi đã tạo ra một cấu hình chủ-mys mys mys và mọi thứ đều ổn. "hiển thị trạng thái tổng thể;" trên nô lệ không hiển thị bất kỳ lỗi. đây là đầu ra
Slave_IO_State: Waiting for master to send event
Master_Host: 109.123.100.58
Master_User: replica
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000001
Read_Master_Log_Pos: 106
Relay_Log_File: relay-bin.000001
Relay_Log_Pos: 4
Relay_Master_Log_File: mysql-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 106
Relay_Log_Space: 106
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Tuy nhiên, việc sao chép trên nô lệ dường như không xảy ra khi chủ nhân trải qua thay đổi
Về chủ. TÌNH TRẠNG MASTER
+------------------+----------+--------------+-------------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+-------------------------+
| mysql-bin.000001 | 639495 | | mysql,informationschema |
+------------------+----------+--------------+-------------------------+
trên sản lượng PROCESSLIST nô lệ
+-----+-------------+-----------+------+---------+-------+-----------------------------------------------------------------------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-----+-------------+-----------+------+---------+-------+-----------------------------------------------------------------------+------------------+
| 174 | system user | | NULL | Connect | 25777 | Waiting for master to send event | NULL |
| 175 | system user | | NULL | Connect | 25777 | Has read all relay log; waiting for the slave I/O thread to update it | NULL |
| 199 | root | localhost | NULL | Query | 0 | NULL | show processlist |
+-----+-------------+-----------+------+---------+-------+-----------------------------------------------------------------------+------------------+
3 rows in set (0.00 sec)
Tui bỏ lỡ điều gì vậy
SHOW MASTER STATUSvào nô lệ . Thông tin này không liên quan trừ khi nô lệ cũng đang phục vụ như một chủ nhân cho các nô lệ khác ở hạ lưu.
SHOW PROCESSLISTở trên bản gốc, bạn có thấy kết nối đến từ nô lệ không? Bạn nên. Ngoài ra, tôi sẽ thử STOP SLAVE IO_THREAD;sau đó START SLAVE IO_THREAD;trên nô lệ và xem đầu ra của SHOW SLAVE STATUS(trên nô lệ) thay đổi như thế nào, nếu có.
SHOW MASTER STATUSquá không, bit top bị thiếu tôi nghĩ.