Re: Rename Table in Replication failed / command missing in slave log

2002-08-13 Thread Heikki Tuuri

> Lutz,
>
> - Original Message -
> From: "Lutz Maibach" <[EMAIL PROTECTED]>
> To: "Heikki Tuuri" <[EMAIL PROTECTED]>
> Sent: Tuesday, August 13, 2002 5:09 PM
> Subject: Re: Rename Table in Replication failed / command missing in slave
> log
>
>
> > Hi Heikki,
> >
> > > Lutz' problem looks like somethig different. Do you use replication
only
> to
> > > some databases? If yes, please check the manual about the exact
behavior
> in
> > > such cases. Also check the changelogs after 3.23.49.
> > Thanks for this hint, it was exactly the right one :-)
> > The renamed table ad_429_twas not replicated (we use all ad_*-tables
only
> as temp.
> > tables so they are not replicated to minimize replication-traffic) when
it
> was
> > created so it couldn't be renamed on the slave.
>
> you are welcome!
>
> > Greeting from Germany
> >
> > Lutz Maibach
>
> Best regards,
>
> Heikki
> Innobase Oy
sql query



-
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




Re: Rename Table in Replication failed / command missing in slave log

2002-08-13 Thread Heikki Tuuri

Hi!

The following might fix Pete's RENAME TABLE bug:
...
August 12, 2002:
If you ran in the AUTOCOMMIT mode, executed a SELECT, and immediately after
that a RENAME TABLE, then RENAME would fail and MySQL would complain about
error 1192 'Can't execute the given command because you have active locked
tables or an active transaction'. Fixed in 3.23.52: RENAME now succeeds.
...

But I have not reproduced Pete's problem, I do not know. Please test
3.23.52!

I guess 3.23.52 will be released before Aug 16, 2002.

Lutz' problem looks like somethig different. Do you use replication only to
some databases? If yes, please check the manual about the exact behavior in
such cases. Also check the changelogs after 3.23.49.

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


Copied message:
..

If you're using InnoDB tables, replication stops the slaves from
running.  Heikki said he'd try to get this fixed for 3.23.52.

--Pete


On Mon, Aug 12, 2002 at 04:05:11PM +0200, Lutz Maibach wrote:
> Hi,
>
> today I noticed a strange behaviour in MySQL 3.23.49a-Replication  I can't
explain.
> A perl-script which controls whether master- and replication-tables are
equal
showed
> me, that a master-table was missing on both slaves (two backups are better
than
one
> :-) )
>
> When I controlled the master update-log I saw that the master-table was
renamed
with
> the following command:
> ALTER TABLE ad_429_t RENAME adprj_7;
>
> This command was missing in the slave-updatelogs. The sql-statements
before and
> right after the missing one were present and no error was written down in
the
> mysql-error-log.
>
> Trying to find out whether the Rename-Statement works right or not I did
some
tests
> with renaming a table but all actions were performed on the slaves too.
>
> Has someone experienced the same? I'm now a bit unsure whether the
replication
is
> working right.
>
> Greetings from Germany
>
> Lutz Maibach




-
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




Re: Rename Table in Replication failed / command missing in slave log

2002-08-12 Thread Pete Harlan

If you're using InnoDB tables, replication stops the slaves from
running.  Heikki said he'd try to get this fixed for 3.23.52.

--Pete


On Mon, Aug 12, 2002 at 04:05:11PM +0200, Lutz Maibach wrote:
> Hi,
> 
> today I noticed a strange behaviour in MySQL 3.23.49a-Replication  I can't explain.
> A perl-script which controls whether master- and replication-tables are equal showed
> me, that a master-table was missing on both slaves (two backups are better than one
> :-) )
> 
> When I controlled the master update-log I saw that the master-table was renamed with
> the following command:
> ALTER TABLE ad_429_t RENAME adprj_7;
> 
> This command was missing in the slave-updatelogs. The sql-statements before and
> right after the missing one were present and no error was written down in the
> mysql-error-log.
> 
> Trying to find out whether the Rename-Statement works right or not I did some tests
> with renaming a table but all actions were performed on the slaves too.
> 
> Has someone experienced the same? I'm now a bit unsure whether the replication is
> working right.
> 
> Greetings from Germany
> 
> Lutz Maibach
> 
> 
> 
> -
> 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