2002-06-05 20:16:44 -06:00
|
|
|
source include/master-slave.inc;
|
2003-04-07 21:36:45 +03:00
|
|
|
drop database if exists test_$1;
|
|
|
|
create database test_$1;
|
|
|
|
create table test_$1.t1 ( n int);
|
|
|
|
alter table test_$1.t1 add m int;
|
|
|
|
insert into test_$1.t1 values (1,2);
|
|
|
|
create table test_$1.t2 (n int);
|
|
|
|
insert into test_$1.t2 values (45);
|
|
|
|
rename table test_$1.t2 to test_$1.t3, test_$1.t1 to test_$1.t2;
|
2002-06-05 20:16:44 -06:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|
2003-04-07 21:36:45 +03:00
|
|
|
select * from test_$1.t2;
|
|
|
|
select * from test_$1.t3;
|
2002-06-05 20:16:44 -06:00
|
|
|
connection master;
|
2003-04-07 21:36:45 +03:00
|
|
|
drop database test_$1;
|
2002-06-05 20:16:44 -06:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|