2000-12-07 15:54:59 +01:00
|
|
|
source include/master-slave.inc;
|
2001-01-03 01:15:48 +01:00
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (n int auto_increment primary key);
|
2000-11-18 07:35:40 +01:00
|
|
|
set insert_id = 2000;
|
2001-01-03 01:15:48 +01:00
|
|
|
insert into t1 values (NULL),(NULL),(NULL);
|
2001-01-17 13:47:33 +01:00
|
|
|
save_master_pos;
|
2000-11-18 07:35:40 +01:00
|
|
|
connection slave;
|
2001-01-17 13:47:33 +01:00
|
|
|
sync_with_master;
|
2001-02-15 05:23:20 +01:00
|
|
|
select * from t1;
|
2001-01-17 13:47:33 +01:00
|
|
|
connection master;
|
2002-08-08 02:12:02 +02:00
|
|
|
--replace_result $SLAVE_MYPORT 9999
|
2001-05-31 02:50:56 +02:00
|
|
|
show slave hosts;
|
2001-01-03 01:15:48 +01:00
|
|
|
drop table t1;
|
2001-01-17 13:47:33 +01:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|
2001-02-15 05:23:20 +01:00
|
|
|
slave stop;
|
|
|
|
connection master;
|
|
|
|
drop table if exists t2;
|
|
|
|
create table t2(id int auto_increment primary key, created datetime);
|
|
|
|
set timestamp=12345;
|
|
|
|
insert into t2 set created=now();
|
|
|
|
select * from t2;
|
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
slave start;
|
|
|
|
sync_with_master;
|
|
|
|
select * from t2;
|
|
|
|
connection master;
|
|
|
|
drop table t2;
|
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|