2002-10-24 17:46:14 -06:00
|
|
|
stop slave;
|
2002-08-08 03:12:02 +03:00
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2001-09-27 23:05:54 -06:00
|
|
|
reset master;
|
|
|
|
reset slave;
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2001-09-27 23:05:54 -06:00
|
|
|
show master status;
|
2000-12-27 03:31:06 +02:00
|
|
|
File Position Binlog_do_db Binlog_ignore_db
|
2002-10-29 15:11:13 -07:00
|
|
|
master-bin.000001 79
|
2001-09-27 23:05:54 -06:00
|
|
|
show slave status;
|
2002-04-01 21:46:23 -07:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
2002-10-29 15:11:13 -07:00
|
|
|
127.0.0.1 root MASTER_PORT 1 master-bin.000001 79 slave-relay-bin.000002 123 master-bin.000001 Yes Yes 0 0 79 127
|
2003-01-04 15:37:20 +02:00
|
|
|
stop slave;
|
2001-09-27 23:05:54 -06:00
|
|
|
change master to master_log_pos=73;
|
2003-01-04 15:37:20 +02:00
|
|
|
start slave;
|
2002-10-24 17:46:14 -06:00
|
|
|
stop slave;
|
2001-09-27 23:05:54 -06:00
|
|
|
change master to master_log_pos=73;
|
|
|
|
show slave status;
|
2002-04-01 21:46:23 -07:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
2002-10-29 15:11:13 -07:00
|
|
|
127.0.0.1 root MASTER_PORT 1 master-bin.000001 73 slave-relay-bin.000001 4 master-bin.000001 No No 0 0 73 4
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2001-09-27 23:05:54 -06:00
|
|
|
show slave status;
|
2002-04-01 21:46:23 -07:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
2002-10-29 15:11:13 -07:00
|
|
|
127.0.0.1 root MASTER_PORT 1 master-bin.000001 73 slave-relay-bin.000001 4 master-bin.000001 No Yes 0 0 73 4
|
2003-01-03 00:04:33 +02:00
|
|
|
stop slave;
|
2001-09-27 23:05:54 -06:00
|
|
|
change master to master_log_pos=173;
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2001-09-27 23:05:54 -06:00
|
|
|
show slave status;
|
2002-04-01 21:46:23 -07:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
2002-10-29 15:11:13 -07:00
|
|
|
127.0.0.1 root MASTER_PORT 1 master-bin.000001 173 slave-relay-bin.000001 4 master-bin.000001 No Yes 0 0 173 4
|
2001-09-27 23:05:54 -06:00
|
|
|
show master status;
|
2000-12-27 03:31:06 +02:00
|
|
|
File Position Binlog_do_db Binlog_ignore_db
|
2002-10-29 15:11:13 -07:00
|
|
|
master-bin.000001 79
|
2002-08-21 22:04:22 +03:00
|
|
|
create table if not exists t1 (n int);
|
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (n int);
|
|
|
|
insert into t1 values (1),(2),(3);
|
2003-01-04 15:37:20 +02:00
|
|
|
stop slave;
|
2001-09-27 23:05:54 -06:00
|
|
|
change master to master_log_pos=79;
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2002-08-21 22:04:22 +03:00
|
|
|
select * from t1;
|
2000-12-27 03:31:06 +02:00
|
|
|
n
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
2002-08-21 22:04:22 +03:00
|
|
|
drop table t1;
|