Jon,

replication basically pipes into the mysql client the SQL statements in the
output of

mysqlbinlog hostname-bin.xxx

Can you study from the output what was happening when row 6781602 was to be
inserted?

You should find

SET INSERT_ID=6781602

in the output.

If you pipe the output to the mysql client, can you repeat the strange
behavior?

Best regards,

Heikki Tuuri
Innobase Oy
---
Order technical MySQL/InnoDB support at https://order.mysql.com/
See http://www.innodb.com for the online manual and latest news on InnoDB


----- Original Message -----
From: ""Jon Frisby"" <[EMAIL PROTECTED]>
Newsgroups: mailing.database.mysql
Sent: Saturday, July 27, 2002 4:15 AM
Subject: 4.0.2 Replication problem w/ AUTO_INCREMENT columns?


> Hello all,
>
> We're experiencing a bit of difficulty replicating from a 4.0.2 master on
> Linux to a 4.0.2 slave on Linux.  Most of our tables, including the one
> that's giving us headaches are InnoDB.  My colleague encountered the
> problem, his description follows:
>
> > It seems to barf on auto_increment fields, at least in
> > some cases.  It thinks there's a duplicate key where
> > there isn't one:
> >
> > error 'Duplicate entry '6781602' for key 1' on query
> > 'INSERT INTO visitor(partner_id, campaign_id, referrer_id,
> > when_firstvisit) VALUES(NULL, NULL, NULL, NOW())'
> >
> [From the slave:]
> > mysql> select * from visitor where id=6781602;
> > Empty set (0.00 sec)
> [From the master:]
> > mysql> select * from visitor where id=6781602;
> >
+---------+------------+-------------+-------------+---------------------+
> > | id      | partner_id | campaign_id | referrer_id | when_firstvisit
|
> >
+---------+------------+-------------+-------------+---------------------+
> > | 6781602 |         17 |        NULL |        NULL | 2002-07-26 00:28:12
|
> >
+---------+------------+-------------+-------------+---------------------+
>
> Any ideas?
>
> -JF
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to