PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.database.mysql > Replication; Duplicate Entry on Update?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Replication; Duplicate Entry on Update?

Réponse
 
LinkBack Outils de la discussion
Vieux 27/04/2006, 19h54   #1
Joseph Chase
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 is greatly appreciated.


  Réponse avec citation
Vieux 27/04/2006, 22h33   #2
Gordon Burditt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Replication; Duplicate Entry on Update?

>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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h08.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07210 seconds with 10 queries