master > show master status\G
*************************** 1. row ***************************
File: mysql-bin.000007
Position: 155
Binlog_Do_DB:
Binlog_Ignore_DB:
Executed_Gtid_Set:
1 row in set (0.00 sec)
slave > CHANGE MASTER TO MASTER_HOST='127.0.0.1',
MASTER_USER='replica_user',
MASTER_PASSWORD='repli$cat',
MASTER_PORT=19025,
MASTER_LOG_FILE='mysql-bin.000007',
MASTER_LOG_POS=155; start slave;
Query OK, 0 rows affected, 2 warnings (0.01 sec)
Query OK, 0 rows affected (0.00 sec)
# This procedure works with GTIDs too
slave > CHANGE MASTER TO MASTER_HOST='127.0.0.1',
MASTER_USER='replica_user',
MASTER_PASSWORD='repli$cat',
MASTER_PORT=19025,
MASTER_AUTO_POSITION = 1 ; start slave;