Switch over at a database level
Is it possible to switch over an individual database?
For example, with the below scenario: - I have 3-server replication - Server contains multiple databases owned by different users
I'd like to manually switch over only one database, "MyDb1" as a failover test. The rest of the databases residing on the same MariaDB server should not be impacted. This is to minimize the impact to other databases for failover test exercise.
Is this possible by Standard Replication?
I'd be grateful for this information.
Answer Answered by Rhys Campbell in this comment.
https://www.digitalocean.com/community/tutorials/how-to-set-up-mysql-master-master-replication
Essentially both servers are slaves of each other. They can both accept writes that will be replicated to each other.
You need to be careful about not writing on both...
server1\db1 server2\db1
Or you'll end up with data issues.