2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
11
create table t1(n int not null auto_increment primary key)ENGINE=MyISAM;
12
insert into t1 values (NULL);
14
create table t1 (word char(20) not null)ENGINE=MyISAM;
15
load data infile '../std_data_ln/words.dat' into table t1 ignore 1 lines;
16
select count(*) from t1;
20
Log_name Pos Event_type Server_id End_log_pos Info
21
master-bin.000001 # Format_desc 1 # Server ver: VERSION, Binlog ver: 4
22
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
23
master-bin.000001 # Intvar 1 # INSERT_ID=1
24
master-bin.000001 # Query 1 # use `test`; insert into t1 values (NULL)
25
master-bin.000001 # Query 1 # use `test`; drop table t1
26
master-bin.000001 # Query 1 # use `test`; create table t1 (word char(20) not null)ENGINE=MyISAM
27
master-bin.000001 # Begin_load_query 1 # ;file_id=1;block_len=581
28
master-bin.000001 # Execute_load_query 1 # use `test`; load data infile '../std_data_ln/words.dat' into table t1 ignore 1 lines ;file_id=1
29
show binlog events from 107 limit 1;
30
Log_name Pos Event_type Server_id End_log_pos Info
31
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
32
show binlog events from 107 limit 2;
33
Log_name Pos Event_type Server_id End_log_pos Info
34
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
35
master-bin.000001 # Intvar 1 # INSERT_ID=1
36
show binlog events from 107 limit 2,1;
37
Log_name Pos Event_type Server_id End_log_pos Info
38
master-bin.000001 # Query 1 # use `test`; insert into t1 values (NULL)
40
create table t3 (a int)ENGINE=MyISAM;
41
select * from t1 order by 1 asc;
114
let $result_pattern= '%127.0.0.1%root%master-bin.000002%slave-relay-bin.000005%Yes%Yes%0%0%None%' ;
116
--source include/wait_slave_status.inc
117
select * from t1 order by 1 asc;
190
create table t2 (n int)ENGINE=MyISAM;
191
insert into t2 values (1);
192
show binlog events from <binlog_start>;
193
Log_name Pos Event_type Server_id End_log_pos Info
194
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
195
master-bin.000001 # Intvar # # INSERT_ID=1
196
master-bin.000001 # Query # # use `test`; insert into t1 values (NULL)
197
master-bin.000001 # Query # # use `test`; drop table t1
198
master-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=MyISAM
199
master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=581
200
master-bin.000001 # Execute_load_query # # use `test`; load data infile '../std_data_ln/words.dat' into table t1 ignore 1 lines ;file_id=#
201
master-bin.000001 # Rotate # # master-bin.000002;pos=4
202
show binlog events in 'master-bin.000002';
203
Log_name Pos Event_type Server_id End_log_pos Info
204
master-bin.000002 # Format_desc 1 # Server ver: VERSION, Binlog ver: 4
205
master-bin.000002 # Query 1 # use `test`; create table t3 (a int)ENGINE=MyISAM
206
master-bin.000002 # Query 1 # use `test`; create table t2 (n int)ENGINE=MyISAM
207
master-bin.000002 # Query 1 # use `test`; insert into t2 values (1)
210
master-bin.000001 1348
211
master-bin.000002 393
215
slave-bin.000001 1448
217
show binlog events in 'slave-bin.000001' from 4;
218
Log_name Pos Event_type Server_id End_log_pos Info
219
slave-bin.000001 # Format_desc 2 # Server ver: VERSION, Binlog ver: 4
220
slave-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
221
slave-bin.000001 # Intvar 1 # INSERT_ID=1
222
slave-bin.000001 # Query 1 # use `test`; insert into t1 values (NULL)
223
slave-bin.000001 # Query 1 # use `test`; drop table t1
224
slave-bin.000001 # Query 1 # use `test`; create table t1 (word char(20) not null)ENGINE=MyISAM
225
slave-bin.000001 # Begin_load_query 1 # ;file_id=1;block_len=581
226
slave-bin.000001 # Execute_load_query 1 # use `test`; load data INFILE '../tmp/SQL_LOAD-2-1-1.data' INTO table t1 ignore 1 lines ;file_id=1
227
slave-bin.000001 # Query 1 # use `test`; create table t3 (a int)ENGINE=MyISAM
228
slave-bin.000001 # Rotate 2 # slave-bin.000002;pos=4
229
show binlog events in 'slave-bin.000002' from 4;
230
Log_name Pos Event_type Server_id End_log_pos Info
231
slave-bin.000002 # Format_desc 2 # Server ver: VERSION, Binlog ver: 4
232
slave-bin.000002 # Query 1 # use `test`; create table t2 (n int)ENGINE=MyISAM
233
slave-bin.000002 # Query 1 # use `test`; insert into t2 values (1)
236
Master_Host 127.0.0.1
238
Master_Port MASTER_PORT
240
Master_Log_File master-bin.000002
241
Read_Master_Log_Pos 393
244
Relay_Master_Log_File master-bin.000002
246
Slave_SQL_Running Yes
250
Replicate_Ignore_Table #
251
Replicate_Wild_Do_Table
252
Replicate_Wild_Ignore_Table
256
Exec_Master_Log_Pos 393
261
Master_SSL_Allowed No
267
Seconds_Behind_Master #
268
Master_SSL_Verify_Server_Cert No
273
show binlog events in 'slave-bin.000005' from 4;
274
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
278
create table t1(a int auto_increment primary key, b int);
279
insert into t1 values (NULL, 1);
282
insert into t1 values (NULL, last_insert_id()), (NULL, last_insert_id());
283
show binlog events from <binlog_start>;
284
Log_name Pos Event_type Server_id End_log_pos Info
285
master-bin.000001 # Intvar # # LAST_INSERT_ID=1
286
master-bin.000001 # Intvar # # INSERT_ID=5
287
master-bin.000001 # Query # # use `test`; insert into t1 values (NULL, last_insert_id()), (NULL, last_insert_id())