2001-06-21 21:19:24 +02:00
|
|
|
source include/master-slave.inc;
|
2001-06-30 21:08:35 +02:00
|
|
|
eval_result; #result depends on some server specific params
|
2001-06-21 21:19:24 +02:00
|
|
|
|
|
|
|
#clean up slave binlogs
|
|
|
|
connection slave;
|
2001-06-22 16:35:18 +02:00
|
|
|
slave stop;
|
2001-06-21 21:19:24 +02:00
|
|
|
reset master;
|
2001-06-22 16:35:18 +02:00
|
|
|
reset slave;
|
2001-06-21 21:19:24 +02:00
|
|
|
|
|
|
|
connection master;
|
2001-06-22 16:35:18 +02:00
|
|
|
reset master;
|
2001-06-21 21:19:24 +02:00
|
|
|
drop table if exists t1;
|
|
|
|
create table t1(n int not null auto_increment primary key);
|
|
|
|
insert into t1 values (NULL);
|
|
|
|
drop table t1;
|
|
|
|
create table t1 (word char(20) not null);
|
|
|
|
load data infile '../../std_data/words.dat' into table t1;
|
|
|
|
drop table t1;
|
|
|
|
show binlog events;
|
|
|
|
show binlog events from 79 limit 1;
|
|
|
|
show binlog events from 79 limit 2;
|
|
|
|
show binlog events from 79 limit 2,1;
|
|
|
|
flush logs;
|
2001-06-24 03:37:24 +02:00
|
|
|
create table t1 (n int);
|
|
|
|
insert into t1 values (1);
|
|
|
|
drop table t1;
|
2001-06-21 21:19:24 +02:00
|
|
|
show binlog events;
|
|
|
|
show binlog events in 'master-bin.002';
|
2001-06-22 16:35:18 +02:00
|
|
|
show master logs;
|
2001-06-21 21:19:24 +02:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
2001-06-30 21:08:35 +02:00
|
|
|
let $VERSION=`select version()`;
|
2001-06-22 16:35:18 +02:00
|
|
|
slave start;
|
2001-06-21 21:19:24 +02:00
|
|
|
sync_with_master;
|
|
|
|
show master logs;
|
|
|
|
show binlog events in 'slave-bin.001' from 4;
|
|
|
|
show binlog events in 'slave-bin.002' from 4;
|
2001-06-24 03:37:24 +02:00
|
|
|
show slave status;
|