change master to master_host="127.0.0.1",master_port=SLAVE_PORT,master_user="root";
9
start slave;
9
include/start_slave.inc
10
10
create table t1 (n int);
11
stop slave;
11
include/stop_slave.inc
12
12
create table t2 (n int);
13
13
show tables;
14
14
Tables_in_test
22
22
insert into t3 values(3);
23
23
commit;
24
24
insert into t3 values(4);
25
start slave until master_log_file="slave-bin.000001",master_log_pos=195;
25
start slave until master_log_file="MASTER_LOG_FILE",master_log_pos=MASTER_LOG_POS;
26
26
Warnings:
27
27
Note 1278 It is recommended to use --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL; otherwise, you will get problems if you get an unexpected slave's mysqld restart
28
28
show tables;
29
29
Tables_in_test
30
30
t1
31
31
t2
32
start slave until master_log_file="slave-bin.000001",master_log_pos=438;
32
start slave until master_log_file="MASTER_LOG_FILE",master_log_pos=MASTER_LOG_POS;
33
33
Warnings:
34
34
Note 1278 It is recommended to use --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL; otherwise, you will get problems if you get an unexpected slave's mysqld restart
35
35
select * from t3;
36
36
n
37
37
1
38
start slave until master_log_file="slave-bin.000001",master_log_pos=663;
38
start slave until master_log_file="MASTER_LOG_FILE",master_log_pos=MASTER_LOG_POS;
39
39
Warnings:
40
40
Note 1278 It is recommended to use --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL; otherwise, you will get problems if you get an unexpected slave's mysqld restart