1
1
# Connect to both master and slave
2
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,);
3
connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,);
2
connect (master,localhost,root,,test,$MASTER_MYPORT,);
3
connect (slave,localhost,root,,test,$SLAVE_MYPORT,);