rpl_row_until.result 5.31 KB
Newer Older
1 2 3 4 5 6
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
Serge Kozlov's avatar
Serge Kozlov committed
7 8 9 10 11 12 13
CREATE TABLE t1(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
INSERT INTO t1 VALUES (1),(2),(3),(4);
DROP TABLE t1;
CREATE TABLE t2(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
INSERT INTO t2 VALUES (1),(2);
INSERT INTO t2 VALUES (3),(4);
DROP TABLE t2;
14
include/stop_slave.inc
Serge Kozlov's avatar
Serge Kozlov committed
15 16 17
RESET SLAVE;
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_drop_t1
SELECT * FROM t1;
18 19 20 21 22
n
1
2
3
4
23
SHOW SLAVE STATUS;
24 25 26
Slave_IO_State	#
Master_Host	127.0.0.1
Master_User	root
Serge Kozlov's avatar
Serge Kozlov committed
27
Master_Port	#
28 29
Connect_Retry	1
Master_Log_File	master-bin.000001
Serge Kozlov's avatar
Serge Kozlov committed
30
Read_Master_Log_Pos	#
31
Relay_Log_File	#
32 33
Relay_Log_Pos	#
Relay_Master_Log_File	master-bin.000001
34
Slave_IO_Running	Yes
35 36 37 38
Slave_SQL_Running	No
Replicate_Do_DB	
Replicate_Ignore_DB	
Replicate_Do_Table	
39
Replicate_Ignore_Table	#
40 41 42 43 44
Replicate_Wild_Do_Table	
Replicate_Wild_Ignore_Table	
Last_Errno	0
Last_Error	
Skip_Counter	0
Serge Kozlov's avatar
Serge Kozlov committed
45
Exec_Master_Log_Pos	MASTER_POS_DROP_T1
46 47 48
Relay_Log_Space	#
Until_Condition	Master
Until_Log_File	master-bin.000001
Serge Kozlov's avatar
Serge Kozlov committed
49
Until_Log_Pos	MASTER_POS_DROP_T1
50 51 52 53 54 55 56 57
Master_SSL_Allowed	No
Master_SSL_CA_File	
Master_SSL_CA_Path	
Master_SSL_Cert	
Master_SSL_Cipher	
Master_SSL_Key	
Seconds_Behind_Master	#
Master_SSL_Verify_Server_Cert	No
58 59 60 61
Last_IO_Errno	#
Last_IO_Error	#
Last_SQL_Errno	0
Last_SQL_Error	
Andrei Elkin's avatar
Andrei Elkin committed
62 63
Replicate_Ignore_Server_Ids	
Master_Server_Id	1
64
Master_Info_File	#
Serge Kozlov's avatar
Serge Kozlov committed
65 66
START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=291;
SELECT * FROM t1;
67 68 69 70 71
n
1
2
3
4
72
SHOW SLAVE STATUS;
73 74 75
Slave_IO_State	#
Master_Host	127.0.0.1
Master_User	root
Serge Kozlov's avatar
Serge Kozlov committed
76
Master_Port	#
77 78
Connect_Retry	1
Master_Log_File	master-bin.000001
Serge Kozlov's avatar
Serge Kozlov committed
79
Read_Master_Log_Pos	#
80
Relay_Log_File	#
81 82
Relay_Log_Pos	#
Relay_Master_Log_File	master-bin.000001
83
Slave_IO_Running	Yes
84 85 86 87
Slave_SQL_Running	No
Replicate_Do_DB	
Replicate_Ignore_DB	
Replicate_Do_Table	
88
Replicate_Ignore_Table	#
89 90 91 92 93
Replicate_Wild_Do_Table	
Replicate_Wild_Ignore_Table	
Last_Errno	0
Last_Error	
Skip_Counter	0
Serge Kozlov's avatar
Serge Kozlov committed
94
Exec_Master_Log_Pos	MASTER_POS_DROP_T1
95 96 97 98 99 100 101 102 103 104 105 106
Relay_Log_Space	#
Until_Condition	Master
Until_Log_File	master-no-such-bin.000001
Until_Log_Pos	291
Master_SSL_Allowed	No
Master_SSL_CA_File	
Master_SSL_CA_Path	
Master_SSL_Cert	
Master_SSL_Cipher	
Master_SSL_Key	
Seconds_Behind_Master	#
Master_SSL_Verify_Server_Cert	No
107 108 109 110
Last_IO_Errno	#
Last_IO_Error	#
Last_SQL_Errno	0
Last_SQL_Error	
Andrei Elkin's avatar
Andrei Elkin committed
111 112
Replicate_Ignore_Server_Ids	
Master_Server_Id	1
113
Master_Info_File	#
Serge Kozlov's avatar
Serge Kozlov committed
114 115
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=relay_pos_insert1_t2
SELECT * FROM t2;
116 117 118
n
1
2
119
SHOW SLAVE STATUS;
120 121 122
Slave_IO_State	#
Master_Host	127.0.0.1
Master_User	root
Serge Kozlov's avatar
Serge Kozlov committed
123
Master_Port	#
124 125
Connect_Retry	1
Master_Log_File	master-bin.000001
Serge Kozlov's avatar
Serge Kozlov committed
126
Read_Master_Log_Pos	#
127
Relay_Log_File	#
128 129
Relay_Log_Pos	#
Relay_Master_Log_File	master-bin.000001
130
Slave_IO_Running	Yes
131 132 133 134
Slave_SQL_Running	No
Replicate_Do_DB	
Replicate_Ignore_DB	
Replicate_Do_Table	
135
Replicate_Ignore_Table	#
136 137 138 139 140
Replicate_Wild_Do_Table	
Replicate_Wild_Ignore_Table	
Last_Errno	0
Last_Error	
Skip_Counter	0
Serge Kozlov's avatar
Serge Kozlov committed
141
Exec_Master_Log_Pos	MASTER_POS_INSERT1_T2
142 143
Relay_Log_Space	#
Until_Condition	Relay
Serge Kozlov's avatar
Serge Kozlov committed
144 145
Until_Log_File	slave-relay-bin.000002
Until_Log_Pos	RELAY_POS_INSERT1_T2
146 147 148 149 150 151 152 153
Master_SSL_Allowed	No
Master_SSL_CA_File	
Master_SSL_CA_Path	
Master_SSL_Cert	
Master_SSL_Cipher	
Master_SSL_Key	
Seconds_Behind_Master	#
Master_SSL_Verify_Server_Cert	No
154 155 156 157
Last_IO_Errno	#
Last_IO_Error	#
Last_SQL_Errno	0
Last_SQL_Error	
Andrei Elkin's avatar
Andrei Elkin committed
158 159
Replicate_Ignore_Server_Ids	
Master_Server_Id	1
160
Master_Info_File	#
Serge Kozlov's avatar
Serge Kozlov committed
161
START SLAVE;
162
include/stop_slave.inc
Serge Kozlov's avatar
Serge Kozlov committed
163
START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_create_t2
164
SHOW SLAVE STATUS;
165 166 167
Slave_IO_State	#
Master_Host	127.0.0.1
Master_User	root
Serge Kozlov's avatar
Serge Kozlov committed
168
Master_Port	#
169 170
Connect_Retry	1
Master_Log_File	master-bin.000001
Serge Kozlov's avatar
Serge Kozlov committed
171
Read_Master_Log_Pos	#
172
Relay_Log_File	#
173 174
Relay_Log_Pos	#
Relay_Master_Log_File	master-bin.000001
175
Slave_IO_Running	No
176 177 178 179
Slave_SQL_Running	No
Replicate_Do_DB	
Replicate_Ignore_DB	
Replicate_Do_Table	
180
Replicate_Ignore_Table	#
181 182 183 184 185
Replicate_Wild_Do_Table	
Replicate_Wild_Ignore_Table	
Last_Errno	0
Last_Error	
Skip_Counter	0
Serge Kozlov's avatar
Serge Kozlov committed
186
Exec_Master_Log_Pos	MASTER_POS_DROP_T2
187 188 189
Relay_Log_Space	#
Until_Condition	Master
Until_Log_File	master-bin.000001
Serge Kozlov's avatar
Serge Kozlov committed
190
Until_Log_Pos	MASTER_POS_CREATE_T2
191 192 193 194 195 196 197 198
Master_SSL_Allowed	No
Master_SSL_CA_File	
Master_SSL_CA_Path	
Master_SSL_Cert	
Master_SSL_Cipher	
Master_SSL_Key	
Seconds_Behind_Master	#
Master_SSL_Verify_Server_Cert	No
199 200 201 202
Last_IO_Errno	#
Last_IO_Error	#
Last_SQL_Errno	0
Last_SQL_Error	
Andrei Elkin's avatar
Andrei Elkin committed
203 204
Replicate_Ignore_Server_Ids	
Master_Server_Id	1
205
Master_Info_File	#
Serge Kozlov's avatar
Serge Kozlov committed
206
START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=561;
207
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
Serge Kozlov's avatar
Serge Kozlov committed
208
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=561, RELAY_LOG_POS=12;
209
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
Serge Kozlov's avatar
Serge Kozlov committed
210
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001';
211
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
Serge Kozlov's avatar
Serge Kozlov committed
212
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000009';
213
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
Serge Kozlov's avatar
Serge Kozlov committed
214
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=561;
215
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
Serge Kozlov's avatar
Serge Kozlov committed
216 217
START SLAVE;
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=740;
218
Warnings:
unknown's avatar
unknown committed
219
Note	1254	Slave is already running