2002-10-24 17:46:14 -06:00
|
|
|
stop slave;
|
2002-08-08 03:12:02 +03:00
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2002-06-20 15:25:02 +03:00
|
|
|
reset master;
|
|
|
|
reset slave;
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2003-01-06 01:48:59 +02: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;
|
|
|
|
select * from test_$1.t2;
|
2002-06-05 20:16:44 -06:00
|
|
|
n m
|
|
|
|
1 2
|
2003-01-06 01:48:59 +02:00
|
|
|
select * from test_$1.t3;
|
2002-06-05 20:16:44 -06:00
|
|
|
n
|
|
|
|
45
|
2003-01-06 01:48:59 +02:00
|
|
|
drop database test_$1;
|