Skip to content
Snippets Groups Projects
Commit 94af59f1 authored by ale's avatar ale
Browse files

MASTER_AUTO_POSITION is a mysql-only thing

parent 2af17bf2
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -31,7 +31,7 @@ become_slave() { ...@@ -31,7 +31,7 @@ become_slave() {
log "Switching master to ${master_addr}" log "Switching master to ${master_addr}"
mysql -NBe "CHANGE MASTER TO MASTER_HOST='${master_host}', MASTER_PORT=${master_port}, MASTER_USER='replication', MASTER_PASSWORD='${REPL_PASSWORD}', MASTER_CONNECT_RETRY=10, MASTER_USE_GTID=current_pos, MASTER_AUTO_POSITION=1; START SLAVE" mysql -NBe "CHANGE MASTER TO MASTER_HOST='${master_host}', MASTER_PORT=${master_port}, MASTER_USER='replication', MASTER_PASSWORD='${REPL_PASSWORD}', MASTER_CONNECT_RETRY=10, MASTER_USE_GTID=current_pos; START SLAVE"
# TODO: Wait for replication to catch up. # TODO: Wait for replication to catch up.
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment