Bạn có thể thử cách này:
- Slave:
stop slave; - Chính:
flush logs -
Master:
show master status; — take note of the master log file and master log position -
Nô lệ:
CHANGE MASTER TO MASTER_LOG_FILE='log-bin.00000X', MASTER_LOG_POS=106; - Slave:
start slave;