2000-12-12 15:01:35 -07:00
|
|
|
source include/master-slave.inc;
|
|
|
|
connection master;
|
|
|
|
show master status;
|
2001-01-17 05:47:33 -07:00
|
|
|
save_master_pos;
|
2000-12-12 15:01:35 -07:00
|
|
|
connection slave;
|
2001-01-17 05:47:33 -07:00
|
|
|
sync_with_master;
|
2001-04-20 15:18:46 +03:00
|
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
2000-12-12 15:01:35 -07:00
|
|
|
show slave status;
|
|
|
|
change master to master_log_pos=73;
|
|
|
|
slave stop;
|
|
|
|
change master to master_log_pos=73;
|
2001-04-20 15:18:46 +03:00
|
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
2000-12-12 15:01:35 -07:00
|
|
|
show slave status;
|
|
|
|
slave start;
|
2001-04-20 15:18:46 +03:00
|
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
2000-12-12 15:01:35 -07:00
|
|
|
show slave status;
|
|
|
|
change master to master_log_pos=173;
|
2001-04-20 15:18:46 +03:00
|
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
2000-12-12 15:01:35 -07:00
|
|
|
show slave status;
|
|
|
|
connection master;
|
|
|
|
show master status;
|
2001-01-02 21:46:33 -07:00
|
|
|
create table if not exists foo(n int);
|
2000-12-12 15:01:35 -07:00
|
|
|
drop table if exists foo;
|
|
|
|
create table foo (n int);
|
|
|
|
insert into foo values (1),(2),(3);
|
2001-01-17 05:47:33 -07:00
|
|
|
save_master_pos;
|
2000-12-12 15:01:35 -07:00
|
|
|
connection slave;
|
2001-06-19 15:03:48 -06:00
|
|
|
change master to master_log_pos=79;
|
2001-01-17 05:47:33 -07:00
|
|
|
sync_with_master;
|
2000-12-12 15:01:35 -07:00
|
|
|
select * from foo;
|
2001-01-03 02:15:48 +02:00
|
|
|
connection master;
|
|
|
|
drop table foo;
|
2001-01-17 05:47:33 -07:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|