So it should be possible to automate a skip of errors setting by code , at
run-time, sql_slave_skip_counter = 1, each time I check the slave status and
I found an error, and then I restart the slave
Thanks, I should try this way.

One think it is astonished: I can agree that there should bu some conflict,
but why i have remove the same row, with tha same key value several times
 about 5-6 times ).
Do you have some knowledge of problem like that ?

-----Messaggio originale-----
Da: Gleb Paharenko [mailto:[EMAIL PROTECTED]
Inviato: giovedì 29 dicembre 2005 17.00
A: mysql@lists.mysql.com
Oggetto: Re: how use sql_slave_skip_counter to restore slave replication


Hello.  > but the problem is the same and the command 'show slave status'
report >a skip_counter filed equals 0.
> Where I am wrong , some can help me ?  This variable is  the number of
events from the master that a slave server should skip.
sql_slave_skip_counter decrements each time the slave skips one event. Your
slave has already skipped 5 events, so the value of events that it should
skip is 0.

AESYS S.p.A. [Enzo Arlati] wrote: > I'm trying to use teh parameter
sql_slave_skip_counter at run-time to
> restore slave replication.
> When a slave replication broke due some errors in code, my be a duplicate
> key, the only working way to restore the replica where to delete the >
existing record which conflicts whith the ones inserted by the replication
process.
> So if I have a duplicate key 30020 ,I have to remove the record with the
id > 30020 and the replication can reinsert it's copy of record with id =
30020.
> This should be difficult to automate so I try another way using the global
> variable sql_slave_skip_counter. >  > I try to skip 5 records using a
statemente like this:
> set global sql_slave_skip_counter = 5;
> and then restart the slavre > start slave;
>  > but the problem is the same and the command 'show slave status' report
a > skip_counter filed equals 0.
>  > Where I am wrong , some can help me ? > Regards, Enzo >  >

--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to