2002-06-06 04:16:44 +02:00
|
|
|
source include/master-slave.inc;
|
2003-01-06 00:48:59 +01:00
|
|
|
--disable_warnings
|
2003-10-08 11:01:58 +02:00
|
|
|
drop database if exists mysqltest;
|
2003-01-06 00:48:59 +01:00
|
|
|
--enable_warnings
|
2003-10-08 11:01:58 +02:00
|
|
|
create database mysqltest;
|
2003-01-06 00:48:59 +01:00
|
|
|
|
2003-10-08 11:01:58 +02:00
|
|
|
create table mysqltest.t1 ( n int);
|
|
|
|
alter table mysqltest.t1 add m int;
|
|
|
|
insert into mysqltest.t1 values (1,2);
|
|
|
|
create table mysqltest.t2 (n int);
|
|
|
|
insert into mysqltest.t2 values (45);
|
|
|
|
rename table mysqltest.t2 to mysqltest.t3, mysqltest.t1 to mysqltest.t2;
|
2002-06-06 04:16:44 +02:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|
2003-10-08 11:01:58 +02:00
|
|
|
select * from mysqltest.t2;
|
|
|
|
select * from mysqltest.t3;
|
2002-06-06 04:16:44 +02:00
|
|
|
connection master;
|
2003-10-08 11:01:58 +02:00
|
|
|
drop database mysqltest;
|
2002-06-06 04:16:44 +02:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|