Re: FW: Replication reset

2001-12-28 Thread Sasha Pachev
On Friday 28 December 2001 10:18 am, Steve Rapaport wrote: > I didn't think it was possible to put arbitrary mysql commands like SHOW > MASTER STATUS into a script. ?I had assumed I was limited to the > shell-level utilities like mysqlimport and mysqldump. > How exactly do I put the > interactiv

Re: FW: Replication reset

2001-12-28 Thread Steve Rapaport
>>How do we automatically know the master has failed and record that offset? >> > > You need to have your system set up in such a way that failover event will > trigger the execution of a script, which will do all the magic. Good idea! I didn't think it was possible to put arbitrary mysql com

Re: FW: Replication reset

2001-12-28 Thread Sasha Pachev
> > Here is how you can do the above: > > > > * make sure slave runs with log-bin. > > > > * before you direct updates to the slave, record the binlog offset and > > position on the slave by running SHOW MASTER STATUS ( on the slave not on the > > master!) > > > Whoops! When the failover

Re: FW: Replication reset

2001-12-27 Thread Steve Rapaport
Sasha, thanks for your help! But I'm not sure we're in agreement about what is happening yet: Sasha Pachev wrote: > On Wednesday 26 December 2001 01:24 pm, Venu wrote: > >>Since replication is only one-way, there really shouldn't be any updates >>happening on the slave, but in the failover ca