2001-09-27 23:05:54 -06:00
|
|
|
reset master;
|
|
|
|
show master status;
|
2000-12-27 03:31:06 +02:00
|
|
|
File Position Binlog_do_db Binlog_ignore_db
|
2001-06-19 15:03:48 -06:00
|
|
|
master-bin.001 79
|
2001-09-27 23:05:54 -06:00
|
|
|
reset slave;
|
|
|
|
show slave status;
|
2001-06-23 19:37:24 -06:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
|
|
|
|
0 0 0 No 0 0 0
|
2001-09-27 23:05:54 -06:00
|
|
|
change master to master_host='127.0.0.1';
|
|
|
|
show slave status;
|
2001-06-23 19:37:24 -06:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
|
2001-12-01 15:00:32 -07:00
|
|
|
127.0.0.1 test 3306 60 4 No 0 0 0
|
2001-11-04 15:43:41 +02:00
|
|
|
change master to master_host='127.0.0.1',master_user='root',
|
2001-12-01 15:00:32 -07:00
|
|
|
master_password='',master_port=9306;
|
2001-09-27 23:05:54 -06:00
|
|
|
show slave status;
|
2001-06-23 19:37:24 -06:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
|
2001-12-01 15:00:32 -07:00
|
|
|
127.0.0.1 root 9306 60 4 No 0 0 0
|
2001-09-27 23:05:54 -06:00
|
|
|
slave start;
|
|
|
|
show slave status;
|
2001-06-23 19:37:24 -06:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
|
2001-12-01 15:00:32 -07:00
|
|
|
127.0.0.1 root 9306 60 master-bin.001 79 Yes 0 0 1
|
2001-09-27 23:05:54 -06:00
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (n int);
|
|
|
|
insert into t1 values (10),(45),(90);
|
|
|
|
select * from t1;
|
2000-12-27 03:31:06 +02:00
|
|
|
n
|
|
|
|
10
|
|
|
|
45
|
|
|
|
90
|
2001-09-27 23:05:54 -06:00
|
|
|
drop table t1;
|