主从同步错误一例
mysql> show slavestatus\G;
***************************1. row ***************************
Slave_IO_State:
Master_Host: 10.0.10.114
Master_User: rep
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000024
Read_Master_Log_Pos: 264
Relay_Log_File: relay-bin.000001
Relay_Log_Pos: 4
Relay_Master_Log_File: mysql-bin.000024
Slave_IO_Running: No
Slave_SQL_Running: Yes
Replicate_Do_DB:
。。。。。。。。。。(省略)。。。。。。
Master_SSL_Verify_Server_Cert:No
Last_IO_Errno: 1593
Last_IO_Error: Fatal error: Theslave I/O thread stops becausemaster and slave have equal MySQL server ids; these ids must bedifferent for replication to work (or the --replicate-same-server-id optionmust be used on slave but this does not always make sense; please check themanual before using it).
解决ÿ