gh-ost/localtests/init-replica.sql

10 lines
237 B
MySQL
Raw Normal View History

2022-12-04 01:40:53 +01:00
STOP SLAVE;
RESET SLAVE;
RESET MASTER;
CHANGE MASTER TO MASTER_HOST='primary', MASTER_USER='gh-ost', MASTER_PASSWORD='gh-ost', MASTER_PORT=3306,
MASTER_AUTO_POSITION=1, MASTER_CONNECT_RETRY=1;
START SLAVE;
SET @@GLOBAL.read_only=ON;