I have master and slave database. when master is down, slave will automatically set as master. Both are in different servers. I am using MySQL server.
I am using master database connection with master server IP address and credentials as connection string in my c# application.
How to update the DB connection string automatically to Slave server when the Master server fails? What are the conditions that the C# program switch from the Master server to the Slave server?
I am using entity framework to connect to the database. Could anyone please help me to find out a solution.