@@ -7,241 +7,40 @@ master-bin.000001 329
77connection slave;
88include/stop_slave.inc
99reset slave;
10- show slave status;
11- Slave_IO_State #
12- Master_Host 127.0.0.1
13- Master_User root
14- Master_Port MASTER_PORT
15- Connect_Retry #
16- Master_Log_File
17- Read_Master_Log_Pos 4
18- Relay_Log_File #
19- Relay_Log_Pos #
20- Relay_Master_Log_File
21- Slave_IO_Running No
22- Slave_SQL_Running No
23- Replicate_Do_DB
24- Replicate_Ignore_DB
25- Replicate_Do_Table
26- Replicate_Ignore_Table
27- Replicate_Wild_Do_Table
28- Replicate_Wild_Ignore_Table
29- Last_Errno 0
30- Last_Error
31- Skip_Counter 0
32- Exec_Master_Log_Pos 0
33- Relay_Log_Space #
34- Until_Condition None
35- Until_Log_File
36- Until_Log_Pos 0
37- Master_SSL_Allowed No
38- Master_SSL_CA_File
39- Master_SSL_CA_Path
40- Master_SSL_Cert
41- Master_SSL_Cipher
42- Master_SSL_Key
43- Seconds_Behind_Master #
44- Master_SSL_Verify_Server_Cert No
45- Last_IO_Errno 0
46- Last_IO_Error
47- Last_SQL_Errno 0
48- Last_SQL_Error
49- Replicate_Ignore_Server_Ids
50- Master_Server_Id 1
51- Master_SSL_Crl
52- Master_SSL_Crlpath
53- Using_Gtid No
54- Gtid_IO_Pos
55- Replicate_Do_Domain_Ids
56- Replicate_Ignore_Domain_Ids
57- Parallel_Mode conservative
58- SQL_Delay 0
59- SQL_Remaining_Delay NULL
60- Slave_SQL_Running_State
61- Slave_DDL_Groups 2
62- Slave_Non_Transactional_Groups 0
63- Slave_Transactional_Groups 2
10+ Slave_IO_Running = 'No'
11+ Slave_SQL_Running = 'No'
12+ Last_SQL_Errno = '0'
13+ Last_SQL_Error = ''
14+ Exec_Master_Log_Pos = '0'
6415change master to master_host='127.0.0.1';
65- show slave status;
66- Slave_IO_State #
67- Master_Host 127.0.0.1
68- Master_User root
69- Master_Port MASTER_PORT
70- Connect_Retry #
71- Master_Log_File
72- Read_Master_Log_Pos 4
73- Relay_Log_File #
74- Relay_Log_Pos #
75- Relay_Master_Log_File
76- Slave_IO_Running No
77- Slave_SQL_Running No
78- Replicate_Do_DB
79- Replicate_Ignore_DB
80- Replicate_Do_Table
81- Replicate_Ignore_Table
82- Replicate_Wild_Do_Table
83- Replicate_Wild_Ignore_Table
84- Last_Errno 0
85- Last_Error
86- Skip_Counter 0
87- Exec_Master_Log_Pos 0
88- Relay_Log_Space #
89- Until_Condition None
90- Until_Log_File
91- Until_Log_Pos 0
92- Master_SSL_Allowed No
93- Master_SSL_CA_File
94- Master_SSL_CA_Path
95- Master_SSL_Cert
96- Master_SSL_Cipher
97- Master_SSL_Key
98- Seconds_Behind_Master #
99- Master_SSL_Verify_Server_Cert No
100- Last_IO_Errno 0
101- Last_IO_Error
102- Last_SQL_Errno 0
103- Last_SQL_Error
104- Replicate_Ignore_Server_Ids
105- Master_Server_Id 1
106- Master_SSL_Crl
107- Master_SSL_Crlpath
108- Using_Gtid No
109- Gtid_IO_Pos
110- Replicate_Do_Domain_Ids
111- Replicate_Ignore_Domain_Ids
112- Parallel_Mode conservative
113- SQL_Delay 0
114- SQL_Remaining_Delay NULL
115- Slave_SQL_Running_State
116- Slave_DDL_Groups 2
117- Slave_Non_Transactional_Groups 0
118- Slave_Transactional_Groups 2
119- change master to master_host='127.0.0.1',master_user='root',
16+ Slave_IO_Running = 'No'
17+ Slave_SQL_Running = 'No'
18+ Last_SQL_Errno = '0'
19+ Last_SQL_Error = ''
20+ Exec_Master_Log_Pos = '0'
21+ change master to master_host='127.0.0.1',master_user='root',
12022master_password='',master_port=MASTER_PORT;
121- show slave status;
122- Slave_IO_State #
123- Master_Host 127.0.0.1
124- Master_User root
125- Master_Port MASTER_PORT
126- Connect_Retry #
127- Master_Log_File
128- Read_Master_Log_Pos 4
129- Relay_Log_File #
130- Relay_Log_Pos #
131- Relay_Master_Log_File
132- Slave_IO_Running No
133- Slave_SQL_Running No
134- Replicate_Do_DB
135- Replicate_Ignore_DB
136- Replicate_Do_Table
137- Replicate_Ignore_Table
138- Replicate_Wild_Do_Table
139- Replicate_Wild_Ignore_Table
140- Last_Errno 0
141- Last_Error
142- Skip_Counter 0
143- Exec_Master_Log_Pos 0
144- Relay_Log_Space #
145- Until_Condition None
146- Until_Log_File
147- Until_Log_Pos 0
148- Master_SSL_Allowed No
149- Master_SSL_CA_File
150- Master_SSL_CA_Path
151- Master_SSL_Cert
152- Master_SSL_Cipher
153- Master_SSL_Key
154- Seconds_Behind_Master #
155- Master_SSL_Verify_Server_Cert No
156- Last_IO_Errno 0
157- Last_IO_Error
158- Last_SQL_Errno 0
159- Last_SQL_Error
160- Replicate_Ignore_Server_Ids
161- Master_Server_Id 1
162- Master_SSL_Crl
163- Master_SSL_Crlpath
164- Using_Gtid No
165- Gtid_IO_Pos
166- Replicate_Do_Domain_Ids
167- Replicate_Ignore_Domain_Ids
168- Parallel_Mode conservative
169- SQL_Delay 0
170- SQL_Remaining_Delay NULL
171- Slave_SQL_Running_State
172- Slave_DDL_Groups 2
173- Slave_Non_Transactional_Groups 0
174- Slave_Transactional_Groups 2
17523include/start_slave.inc
176- show slave status;
177- Slave_IO_State Waiting for master to send event
178- Master_Host 127.0.0.1
179- Master_User root
180- Master_Port MASTER_PORT
181- Connect_Retry 1
182- Master_Log_File master-bin.000001
183- Read_Master_Log_Pos 329
184- Relay_Log_File slave-relay-bin.000002
185- Relay_Log_Pos 629
186- Relay_Master_Log_File master-bin.000001
187- Slave_IO_Running Yes
188- Slave_SQL_Running Yes
189- Replicate_Do_DB
190- Replicate_Ignore_DB
191- Replicate_Do_Table
192- Replicate_Ignore_Table
193- Replicate_Wild_Do_Table
194- Replicate_Wild_Ignore_Table
195- Last_Errno 0
196- Last_Error
197- Skip_Counter 0
198- Exec_Master_Log_Pos 329
199- Relay_Log_Space 938
200- Until_Condition None
201- Until_Log_File
202- Until_Log_Pos 0
203- Master_SSL_Allowed No
204- Master_SSL_CA_File
205- Master_SSL_CA_Path
206- Master_SSL_Cert
207- Master_SSL_Cipher
208- Master_SSL_Key
209- Seconds_Behind_Master #
210- Master_SSL_Verify_Server_Cert No
211- Last_IO_Errno 0
212- Last_IO_Error
213- Last_SQL_Errno 0
214- Last_SQL_Error
215- Replicate_Ignore_Server_Ids
216- Master_Server_Id 1
217- Master_SSL_Crl
218- Master_SSL_Crlpath
219- Using_Gtid No
220- Gtid_IO_Pos
221- Replicate_Do_Domain_Ids
222- Replicate_Ignore_Domain_Ids
223- Parallel_Mode conservative
224- SQL_Delay 0
225- SQL_Remaining_Delay NULL
226- Slave_SQL_Running_State Slave has read all relay log; waiting for the slave I/O thread to update it
227- Slave_DDL_Groups 2
228- Slave_Non_Transactional_Groups 0
229- Slave_Transactional_Groups 2
24+ Slave_IO_Running = 'Yes'
25+ Slave_SQL_Running = 'Yes'
26+ Last_SQL_Errno = '0'
27+ Last_SQL_Error = ''
28+ Exec_Master_Log_Pos = '329'
23029connection master;
231- drop table if exists t1;
23230create table t1 (n int, PRIMARY KEY(n));
23331insert into t1 values (10),(45),(90);
23432connection slave;
235- connection slave;
23633SELECT * FROM t1 ORDER BY n;
237- n 10
238- n 45
239- n 90
34+ n
35+ 10
36+ 45
37+ 90
24038connection master;
24139SELECT * FROM t1 ORDER BY n;
242- n 10
243- n 45
244- n 90
40+ n
41+ 10
42+ 45
43+ 90
24544drop table t1;
24645connection slave;
24746include/rpl_end.inc
0 commit comments