473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Replication; Duplicate Entry on Update?

I am running version 4.1.13a-log on a Mac XServe.

How can I receive a 'duplicate entry' error for an UPDATE? An update isn't
creating an entry, so why this error message?

__________________________________________________ __
060427 11:57:23 [Note] Slave SQL thread initialized, starting replication in
log 'kiosk1-bin.000006' at position 7233, relay log
'./royaldemo-2-relay-bin.000007' position: 7321
060427 11:57:23 [ERROR] Slave: Query caused different errors on master and
slave. Error on master: 'Duplicate entry '%-.64s' for key %d' (1062), Error
on slave: 'no error' (0). Default database: 'rccl'. Query: 'UPDATE pages SET
`created_at` = '2006-04-26 14:43:04', `template_id` = 4, `ordernum` = 10,
`location_id` = 4, `user_id` = 1, `serverid` = 10, `name` = 'Trolly 4' WHERE
id = 92', Error_code: 0
060427 11:57:23 [ERROR] Error running query, slave SQL thread aborted. Fix
the problem, and restart the slave SQL thread with "SLAVE START". We stopped
at lo
g 'kiosk1-bin.000006' position 45142
__________________________________________________ __

Any help is greatly appreciated.
Apr 27 '06 #1
1 6410
>How can I receive a 'duplicate entry' error for an UPDATE? An update isn't
creating an entry, so why this error message?
If you modify a column that has a unique key so that the new value
is not unique, you can get that error.
060427 11:57:23 [Note] Slave SQL thread initialized, starting replication in
log 'kiosk1-bin.000006' at position 7233, relay log
'./royaldemo-2-relay-bin.000007' position: 7321
060427 11:57:23 [ERROR] Slave: Query caused different errors on master and
slave. Error on master: 'Duplicate entry '%-.64s' for key %d' (1062), Error
on slave: 'no error' (0). Default database: 'rccl'. Query: 'UPDATE pages SET
`created_at` = '2006-04-26 14:43:04', `template_id` = 4, `ordernum` = 10,
`location_id` = 4, `user_id` = 1, `serverid` = 10, `name` = 'Trolly 4' WHERE
id = 92', Error_code: 0
060427 11:57:23 [ERROR] Error running query, slave SQL thread aborted. Fix
the problem, and restart the slave SQL thread with "SLAVE START". We stopped
at lo
g 'kiosk1-bin.000006' position 45142


It looks here like your replication is out of sync. Your master had
a duplicate record, the slave didn't.

Gordon L. Burditt

Apr 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nick Gaugler | last post by:
I know the replication method is different in MySQL 4.0 then MySQL 3.23.x, but I have a bug that causes problems. The following query will cause MySQL's logic to not properly read any of the...
0
by: I.P. | last post by:
No one has replied to my post. ----- Original Message ----- From: "I.P." <jancio_wodnik@wp.pl> To: <mysql@lists.mysql.com> Sent: Monday, August 18, 2003 1:01 PM Subject: mysql 4.0.14 +...
1
by: Sindri Mar | last post by:
Hello everybody I work at a company in Iceland and we have developed a 3-tier solution written in ASP - Visual Basic - MSSQL2000, 4 companies are using the solution almost constantly and...
3
by: Rohit | last post by:
Hi, I have 2 instances of databases in 2 different cities.Data entry / updations are going on at both the sides.At any point of time data in both the databases should be same.Currently every...
9
by: Jan Wieck | last post by:
Dear community, for some reason the post I sent yesterday night still did not show up on the mailing lists. I have set up some links on the developers side under...
1
by: randi_clausen | last post by:
In setting up a replication scenario to update tables between two Windows 2000 servers at 5.00.2195, one machine with SP4 and the other SP3, and both running WSE 8.1.5, I am getting the following...
4
by: Andi Plotsky | last post by:
I need to synchronize 3 databases (1 Master and 2 replicas). I thought I'd give the Replica feature in Access2000 a whirl. I'm not sure I'm THAT impressed.....but maybe I'm just doing something...
4
by: sri2097 | last post by:
Hi all, I'm storing number of dictionary values into a file using the 'cPickle' module and then am retrieving it. The following is the code for it - # Code for storing the values in the file...
13
by: John | last post by:
Hi We have an MS Access application which runs on the server but some laptop users need the app to work offline. Our solution has been to use Access replication which automatically syncs data...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.