mysql> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: ******
Master_User: slave
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: master-bin.000001
Read_Master_Log_Pos: 182916
Relay_Log_File: relaylogs.000002
Relay_Log_Pos: 128615
Relay_Master_Log_File: master-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: No
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table: mysql.%,test.%,log.%,information_schema.%,performance_schema.%,gurudada_test.%
Last_Errno: 1062
Last_Error: Worker 1 failed executing transaction '2e41297d-ea9f-11e5-8774-12603e392a19:125' at master log master-bin.000001, end_log_pos 129283; Could not execute Write_rows event on table gurudada.user; Duplicate entry '818' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log master-bin.000001, end_log_pos 129283
Skip_Counter: 0
Exec_Master_Log_Pos: 128403
Relay_Log_Space: 183326
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: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 1062
Last_SQL_Error: Worker 1 failed executing transaction '2e41297d-ea9f-11e5-8774-12603e392a19:125' at master log master-bin.000001, end_log_pos 129283; Could not execute Write_rows event on table gurudada.user; Duplicate entry '818' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log master-bin.000001, end_log_pos 129283
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1
Master_UUID: 2e41297d-ea9f-11e5-8774-12603e392a19
Master_Info_File: mysql.slave_master_info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State:
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp: 161124 05:52:20
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set: 2e41297d-ea9f-11e5-8774-12603e392a19:1-190
Executed_Gtid_Set: 2e41297d-ea9f-11e5-8774-12603e392a19:1-124,
9b297ab9-a341-11e6-bb6c-782bcb798fe1:1-485
Auto_Position: 1
1 row in set (0.00 sec)ERROR:
No query specified
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: ******
Master_User: slave
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: master-bin.000001
Read_Master_Log_Pos: 182916
Relay_Log_File: relaylogs.000002
Relay_Log_Pos: 128615
Relay_Master_Log_File: master-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: No
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table: mysql.%,test.%,log.%,information_schema.%,performance_schema.%,gurudada_test.%
Last_Errno: 1062
Last_Error: Worker 1 failed executing transaction '2e41297d-ea9f-11e5-8774-12603e392a19:125' at master log master-bin.000001, end_log_pos 129283; Could not execute Write_rows event on table gurudada.user; Duplicate entry '818' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log master-bin.000001, end_log_pos 129283
Skip_Counter: 0
Exec_Master_Log_Pos: 128403
Relay_Log_Space: 183326
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: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 1062
Last_SQL_Error: Worker 1 failed executing transaction '2e41297d-ea9f-11e5-8774-12603e392a19:125' at master log master-bin.000001, end_log_pos 129283; Could not execute Write_rows event on table gurudada.user; Duplicate entry '818' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log master-bin.000001, end_log_pos 129283
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1
Master_UUID: 2e41297d-ea9f-11e5-8774-12603e392a19
Master_Info_File: mysql.slave_master_info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State:
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp: 161124 05:52:20
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set: 2e41297d-ea9f-11e5-8774-12603e392a19:1-190
Executed_Gtid_Set: 2e41297d-ea9f-11e5-8774-12603e392a19:1-124,
9b297ab9-a341-11e6-bb6c-782bcb798fe1:1-485
Auto_Position: 1
1 row in set (0.00 sec)ERROR:
No query specified
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货