2009-11-23 17:38:42 +01:00
|
|
|
--echo connect (master,$IPv6,root,,test,MASTER_MYPORT,MASTER_MYSOCK);
|
|
|
|
connect (master,$IPv6,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
|
|
|
|
--echo connect (slave,127.0.0.1,root,,test,SLAVE_MYPORT,SLAVE_MYSOCK);
|
|
|
|
connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,$SLAVE_MYSOCK);
|
|
|
|
--echo connection master;
|
|
|
|
connection master;
|
|
|
|
reset master;
|
|
|
|
source include/show_master_status.inc;
|
|
|
|
save_master_pos;
|
|
|
|
--echo connection slave;
|
|
|
|
connection slave;
|
|
|
|
reset slave;
|
2009-11-26 09:03:04 +01:00
|
|
|
let $master_host= query_get_value(SHOW SLAVE STATUS, Master_Host, 1);
|
|
|
|
--echo Master-Host: $master_host
|
2009-11-23 17:38:42 +01:00
|
|
|
eval change master to master_host='$IPv6';
|
2009-11-26 09:03:04 +01:00
|
|
|
let $master_host= query_get_value(SHOW SLAVE STATUS, Master_Host, 1);
|
|
|
|
--echo Master-Host: $master_host
|
2009-11-23 17:38:42 +01:00
|
|
|
--echo disconnect slave;
|
|
|
|
disconnect slave;
|
|
|
|
--echo disconnect master;
|
|
|
|
disconnect master;
|
|
|
|
--echo connection default;
|
|
|
|
connection default;
|
|
|
|
|