Automated replication reversal (failover) September 1, 2020 RLByrd Snippets, Technology, bash snippets, Database, MySQL The attached scripts simple reverse a repliation flow (e.g. serverA –> serverB becomes serverB –> serverA). automated_failover Related posts: Converting the charset for an entire schema Multi-threaded replication in MySQL 5.7 MySQL DDL diff Simulating INTERSECT in MySQL Convert charset in all schemas within an instance