@@ -54,6 +54,43 @@ Starting from [here](https://dev.mysql.com/doc/refman/5.7/en/replication-howto-m
- Create a DB dump: lock tables, remember bin log position, dump db (see [Choosing a Method for Data Snapshots](https://dev.mysql.com/doc/refman/5.7/en/replication-snapshot-method.html)) and copy to secondary host
- Unlock the tables again
- Configure secondary for new master with Ansible playbook `dans COMPANY mysqlsecondary --tags=changemaster --extra-vars="port=[PORT]" --extra-vars="binpos=[BINLOGPOS]"`
- On the secondary, start the MySQL server and turn off replication (`stop slave`)
- Import dump file and then start replication again (`start slave`)
- Configure secondary for new master with Ansible playbook
- On the secondary, start the MySQL server and turn off replication
- Import dump file and then start replication again