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