By Kartik76
Hi ,
I have a setup were Master and slave are running , i want to do the cut over process to make the Slave as master and stop the old master .
So i want to know the process which should be followed.
Thanks you Advance .
Cheers, Kartik
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!
Kartik,
The process for v5.5+ should, ideally, look like:
mysql> stop slave;
mysql> reset slave all;
on the secondary node you wish to promote. This will remove the failed primary node, and promote this secondary replica within your cluster.
Keep in mind that earlier versions of MySQL server may require an additional step before the reset:
change master to MASTER_HOST='';
on the node you wish to promote.
Best, Joseph D. Marhee Customer Success Engineer https://digitalocean.com
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.