1
source include/master-slave.inc;
3
drop database if exists mysqltest;
5
create database mysqltest;
7
create table mysqltest.t1 ( n int);
8
alter table mysqltest.t1 add m int;
9
insert into mysqltest.t1 values (1,2);
10
create table mysqltest.t2 (n int);
11
insert into mysqltest.t2 values (45);
12
rename table mysqltest.t2 to mysqltest.t3, mysqltest.t1 to mysqltest.t2;
16
select * from mysqltest.t2;
17
select * from mysqltest.t3;
19
drop database mysqltest;