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 |
create table t1 (n int);
|
|
8 |
reset master;
|
|
9 |
stop slave;
|
|
10 |
change master to master_port=SLAVE_PORT;
|
|
11 |
show slave status;
|
|
12 |
Slave_IO_State
|
|
13 |
Master_Host 127.0.0.1
|
|
14 |
Master_User root
|
|
15 |
Master_Port SLAVE_PORT
|
|
16 |
Connect_Retry 1
|
|
17 |
Master_Log_File
|
|
18 |
Read_Master_Log_Pos 4
|
|
19 |
Relay_Log_File slave-relay-bin.000001
|
|
20 |
Relay_Log_Pos 4
|
|
21 |
Relay_Master_Log_File
|
|
22 |
Slave_IO_Running No
|
|
23 |
Slave_SQL_Running No
|
|
24 |
Replicate_Do_DB
|
|
25 |
Replicate_Ignore_DB
|
|
26 |
Replicate_Do_Table
|
|
27 |
Replicate_Ignore_Table
|
|
28 |
Replicate_Wild_Do_Table
|
|
29 |
Replicate_Wild_Ignore_Table #
|
|
30 |
Last_Errno 0
|
|
31 |
Last_Error
|
|
32 |
Skip_Counter 0
|
|
33 |
Exec_Master_Log_Pos 0
|
|
34 |
Relay_Log_Space 107
|
|
35 |
Until_Condition None
|
|
36 |
Until_Log_File
|
|
37 |
Until_Log_Pos 0
|
|
38 |
Master_SSL_Allowed No
|
|
39 |
Master_SSL_CA_File
|
|
40 |
Master_SSL_CA_Path
|
|
41 |
Master_SSL_Cert
|
|
42 |
Master_SSL_Cipher
|
|
43 |
Master_SSL_Key
|
|
44 |
Seconds_Behind_Master NULL
|
|
45 |
Master_SSL_Verify_Server_Cert No
|
|
46 |
Last_IO_Errno #
|
|
47 |
Last_IO_Error #
|
|
48 |
Last_SQL_Errno 0
|
|
49 |
Last_SQL_Error
|
|
50 |
start slave;
|
|
51 |
insert into t1 values (1);
|
|
52 |
select * from t1;
|
|
53 |
n
|
|
54 |
1
|
|
55 |
1
|
|
56 |
stop slave;
|
|
57 |
drop table t1;
|