2001-09-27 23:05:54 -06:00
|
|
|
reset master;
|
|
|
|
show master status;
|
2003-11-20 13:49:05 -06:00
|
|
|
File Position Binlog_Do_DB Binlog_Ignore_DB
|
2005-12-22 06:39:02 +01:00
|
|
|
master-bin.000001 102
|
2001-09-27 23:05:54 -06:00
|
|
|
reset slave;
|
|
|
|
show slave status;
|
2003-11-20 13:07:25 -06: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-27 23:05:54 -06:00
|
|
|
change master to master_host='127.0.0.1';
|
|
|
|
show slave status;
|
2003-11-20 13:07:25 -06: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
|
2006-11-27 19:56:04 +01:00
|
|
|
# 127.0.0.1 test DEFAULT_MASTER_PORT 7 4 # # No No 0 0 0 # None 0 No #
|
2001-11-04 15:43:41 +02:00
|
|
|
change master to master_host='127.0.0.1',master_user='root',
|
2002-01-22 15:05:11 -07:00
|
|
|
master_password='',master_port=MASTER_PORT;
|
2001-09-27 23:05:54 -06:00
|
|
|
show slave status;
|
2003-11-20 13:07:25 -06: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-12-19 22:40:23 +01:00
|
|
|
# 127.0.0.1 root MASTER_PORT 7 4 # # No No 0 0 0 # None 0 No #
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2001-09-27 23:05:54 -06:00
|
|
|
show slave status;
|
2003-11-20 13:07:25 -06: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
|
2005-12-22 06:39:02 +01:00
|
|
|
# 127.0.0.1 root MASTER_PORT 7 master-bin.000001 102 # # master-bin.000001 Yes Yes 0 0 102 # None 0 No #
|
2001-09-27 23:05:54 -06:00
|
|
|
drop table if exists t1;
|
2005-12-22 06:39:02 +01:00
|
|
|
create table t1 (n int, PRIMARY KEY(n));
|
2001-09-27 23:05:54 -06:00
|
|
|
insert into t1 values (10),(45),(90);
|
2006-01-18 00:45:23 +01:00
|
|
|
SELECT * FROM t1 ORDER BY n;
|
2000-12-27 03:31:06 +02:00
|
|
|
n
|
|
|
|
10
|
|
|
|
45
|
|
|
|
90
|
2006-01-18 00:45:23 +01:00
|
|
|
SELECT * FROM t1 ORDER BY n;
|
2005-12-22 06:39:02 +01:00
|
|
|
n
|
|
|
|
10
|
|
|
|
45
|
|
|
|
90
|
2001-09-27 23:05:54 -06:00
|
|
|
drop table t1;
|