2001-09-28 07:05:54 +02:00
|
|
|
reset master;
|
|
|
|
show master status;
|
2000-12-27 02:31:06 +01:00
|
|
|
File Position Binlog_do_db Binlog_ignore_db
|
2002-10-29 23:11:13 +01:00
|
|
|
master-bin.000001 79
|
2001-09-28 07:05:54 +02:00
|
|
|
reset slave;
|
|
|
|
show slave status;
|
2003-10-09 00:06:21 +02:00
|
|
|
Slave_IO_State 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 Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space Until_condition Until_Log_File Until_Log_pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_behind_master
|
2001-09-28 07:05:54 +02:00
|
|
|
change master to master_host='127.0.0.1';
|
|
|
|
show slave status;
|
2003-10-09 00:06:21 +02:00
|
|
|
Slave_IO_State 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 Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space Until_condition Until_Log_File Until_Log_pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_behind_master
|
2003-10-09 18:16:15 +02:00
|
|
|
# 127.0.0.1 test MASTER_PORT 7 4 slave-relay-bin.000001 4 No No 0 0 0 4 None 0 No #
|
2001-11-04 14:43:41 +01:00
|
|
|
change master to master_host='127.0.0.1',master_user='root',
|
2002-01-22 23:05:11 +01:00
|
|
|
master_password='',master_port=MASTER_PORT;
|
2001-09-28 07:05:54 +02:00
|
|
|
show slave status;
|
2003-10-09 00:06:21 +02:00
|
|
|
Slave_IO_State 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 Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space Until_condition Until_Log_File Until_Log_pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_behind_master
|
2003-10-09 18:16:15 +02:00
|
|
|
# 127.0.0.1 root MASTER_PORT 7 4 slave-relay-bin.000001 4 No No 0 0 0 4 None 0 No #
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2001-09-28 07:05:54 +02:00
|
|
|
show slave status;
|
2003-10-09 00:06:21 +02:00
|
|
|
Slave_IO_State 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 Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space Until_condition Until_Log_File Until_Log_pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_behind_master
|
2003-10-09 18:16:15 +02:00
|
|
|
# 127.0.0.1 root MASTER_PORT 7 master-bin.000001 79 slave-relay-bin.000001 123 master-bin.000001 Yes Yes 0 0 79 123 None 0 No #
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (n int);
|
|
|
|
insert into t1 values (10),(45),(90);
|
|
|
|
select * from t1;
|
2000-12-27 02:31:06 +01:00
|
|
|
n
|
|
|
|
10
|
|
|
|
45
|
|
|
|
90
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table t1;
|