2010-12-19 18:15:12 +01:00
|
|
|
include/master-slave.inc
|
|
|
|
[connection master]
|
2016-03-25 20:51:22 +04:00
|
|
|
connect slave2,127.0.0.1,root,,test,$SLAVE_MYPORT2,;
|
|
|
|
connection slave2;
|
2009-10-20 14:30:15 +08:00
|
|
|
RESET SLAVE;
|
2009-10-23 10:19:50 +08:00
|
|
|
CHANGE MASTER TO master_host='127.0.0.1',master_port=MASTER_PORT,master_user='root';
|
2009-10-20 14:30:15 +08:00
|
|
|
START SLAVE IO_THREAD;
|
2010-12-19 18:15:12 +01:00
|
|
|
include/wait_for_slave_io_to_start.inc
|
2016-03-25 20:51:22 +04:00
|
|
|
connection master;
|
2009-10-20 14:30:15 +08:00
|
|
|
SHOW SLAVE HOSTS;
|
|
|
|
Server_id Host Port Master_id
|
2012-02-28 14:02:27 +05:30
|
|
|
3 slave2 SLAVE_PORT 1
|
2009-10-23 10:19:50 +08:00
|
|
|
2 SLAVE_PORT 1
|
2016-03-25 20:51:22 +04:00
|
|
|
connection slave2;
|
2011-05-10 12:41:09 +01:00
|
|
|
include/stop_slave_io.inc
|
2016-03-25 20:51:22 +04:00
|
|
|
connection master;
|
2009-10-20 14:30:15 +08:00
|
|
|
SHOW SLAVE HOSTS;
|
|
|
|
Server_id Host Port Master_id
|
2009-10-23 10:19:50 +08:00
|
|
|
2 SLAVE_PORT 1
|
2010-12-19 18:15:12 +01:00
|
|
|
include/rpl_end.inc
|