Why do you use things that do not know much about?

inlude the following line in to both my.ini

slave-skip-errors=1582 1062 1051

Thomas




"Dirk Assum" <[email protected]> 
02.12.2009 15:25
Bitte antworten an
ASSP development mailing list <[email protected]>


An
<[email protected]>
Kopie

Thema
[Assp-test] MySQL Duplicate entry problem






Hi all,

I've two servers running ASSP 2.0.1(RC 0.6.04) (sorry for being behind)
each connected to a local MySQL database.
MySQL is setup with master-master replication.

The replication fails very often because of duplicate entries:

[...]
[ERROR] Slave: Error 'Duplicate entry '1.2.3.4' for key 1' on query.
Default database: 'assp'. Query: 'insert into PBBlack
(pkey,pvalue,pfrozen) values ('1.2.3.4','1259760853 1259760853 1 5
1.2.3.4 IPinHELO','0')', Error_code: 1062
[ERROR] Slave: Error 'Duplicate entry '1.2.3.4' for key 1' on query.
Default database: 'assp'. Query: 'insert into RWLCache
(pkey,pvalue,pfrozen) values ('1.2.3.4','1259760854 2','0')',
Error_code: 1062
[ERROR] Slave: Error 'Duplicate entry '[email protected]' for key 1' on
query. Default database: 'assp'. Query: 'insert into PBTrap
(pkey,pvalue,pfrozen) values ('[email protected]','1259760877 1259760877
1','0')', Error_code: 1062
[...]

I think a solution could be using "REPLACE INTO" or "INSERT IGNORE INTO"
instead of "INSERT INTO".

Dirk



------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to