1
by brian
clean slate |
1 |
stop slave; |
2 |
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; |
|
3 |
reset master; |
|
4 |
reset slave; |
|
5 |
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; |
|
6 |
start slave; |
|
7 |
stop slave; |
|
8 |
grant replication slave on *.* to replicate@localhost identified by 'aaaaaaaaaaaaaaab'; |
|
9 |
grant replication slave on *.* to replicate@127.0.0.1 identified by 'aaaaaaaaaaaaaaab'; |
|
10 |
start slave; |
|
11 |
drop table if exists t1; |
|
12 |
create table t1(n int); |
|
13 |
insert into t1 values(24); |
|
14 |
select * from t1; |
|
15 |
n
|
|
16 |
24
|
|
17 |
drop table t1; |
|
18 |
delete from mysql.user where user="replicate"; |