- 论坛徽章:
- 0
|
slave错误信息:
080114 16:52:23 [Note] Slave SQL thread initialized, starting replication in log 'updatelog.000001' at position 3116, relay log './server-relay-bin.000002' position: 3159
080114 16:52:23 [ERROR] Slave: Error 'Duplicate entry '1424999' for key 1' on query. Default database: 'server'. Query: 'insert into table_1 (NameBak,Type,Command,Operator,OperateDate,Mark,Info1,Info2) values('beijing','E','ModCtr','user23',NOW(),'00','REG','ADM')', Error_code: 1062
080114 16:52:23 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'updatelog.000001' position 3116
小弟是刚接触数据库,不知道怎么解决,希望兄弟姐妹们给个详细的处理办法!感谢了!!!!!
slave信息:
mysql> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: x.x.x.x
Master_User: user
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: updatelog.000006
Read_Master_Log_Pos: 80382219
Relay_Log_File: server-relay-bin.000002
Relay_Log_Pos: 3159
Relay_Master_Log_File: updatelog.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:
Last_Errno: 1062
Last_Error: Error 'Duplicate entry '1424999' for key 1' on query. Default database: 'server'. Query: 'insert into table_1 (NameBak,Type,Command,Operator,OperateDate,Mark,Info1,Info2) values('beijing','E','ModCtr','user23',NOW(),'00','REG','ADM')', Error_code: 1062
Skip_Counter: 0
Exec_Master_Log_Pos: 3116
Relay_Log_Space: 326223737
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: 239918
1 row in set (0.00 sec)
ERROR:
No query specified
从数据库里有插入出错的这条记录
[ 本帖最后由 关系户 于 2008-1-14 17:54 编辑 ] |
|