connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,); connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,); connection slave; --disable_warnings stop slave; --enable_warnings connection master; reset master; connection slave; reset slave; --disable_query_log eval CHANGE MASTER TO MASTER_HOST='127.0.0.1',MASTER_USER='root',MASTER_PORT=$MASTER_MYPORT; --enable_query_log start slave;