2002-10-25 01:46:14 +02:00
|
|
|
stop slave;
|
2002-08-08 02:12:02 +02:00
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2002-06-20 14:25:02 +02:00
|
|
|
reset master;
|
|
|
|
reset slave;
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2003-10-08 11:01:58 +02:00
|
|
|
drop database if exists mysqltest;
|
|
|
|
create database mysqltest;
|
|
|
|
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;
|
|
|
|
select * from mysqltest.t2;
|
2002-06-06 04:16:44 +02:00
|
|
|
n m
|
|
|
|
1 2
|
2003-10-08 11:01:58 +02:00
|
|
|
select * from mysqltest.t3;
|
2002-06-06 04:16:44 +02:00
|
|
|
n
|
|
|
|
45
|
2003-10-08 11:01:58 +02:00
|
|
|
drop database mysqltest;
|