MySQL Forums
Forum List  »  Newbie

Duplicate entry '12924' for key 'PRIMARY'' on query. Default database:
Posted by: Hema v
Date: August 01, 2014 04:57AM

Hi,

We have master-master replication configured. I have got below error Duplicate entry '12924' for key 'PRIMARY'' on query. Default database: and replication stopped. Please let me why this happening and this is now fixed. But need a permanent fix for this. as this is happening more.

details of table on which error occured:

CREATE TABLE `head` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`custom_gp` varchar(255) DEFAULT NULL,
`metta` varchar(255) NOT NULL,
`par_id` bigint(20) DEFAULT NULL,
`pri` int(11) DEFAULT NULL,
`tab_id` varchar(255) DEFAULT NULL,
`fld_n` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13317 DEFAULT CHARSET=utf8
CREATE TABLE `head` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`custom_gp` varchar(255) DEFAULT NULL,
`metta` varchar(255) NOT NULL,
`par_id` bigint(20) DEFAULT NULL,
`pri` int(11) DEFAULT NULL,
`tab_id` varchar(255) DEFAULT NULL,
`fld_n` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13317 DEFAULT CHARSET=utf8

Options: ReplyQuote


Subject
Written By
Posted
Duplicate entry '12924' for key 'PRIMARY'' on query. Default database:
August 01, 2014 04:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.