mysql replication master change on every X Day

Hello, I have two server one is live server and second one is standby server. so every X day i am swapping this server.

so i make one server as live server as master and second standby have slave.

now after X day my Second one is live(master) ans First one is standby(slave)

so now i want to also make 3rd one slave server (now configured as per master server log number) but when i swap master server to slave then what change i need to do in 3rd slave server according new master server.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If I understand your question correctly you shouldn’t need to do anything. As long as it’s a member of the replication cluster the new master will begin being used. This is the same as if your master server were to crash. One of the slaves would become the new master server and things would continue running.