{"id":1125,"date":"2014-02-21T14:11:51","date_gmt":"2014-02-21T14:11:51","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=1125"},"modified":"2014-02-21T14:11:51","modified_gmt":"2014-02-21T14:11:51","slug":"steps-to-fail-over-mysql-and-maintain-replication","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=1125","title":{"rendered":"Steps to fail over Mysql and maintain replication"},"content":{"rendered":"<p>1. on all replicating slaves issue:<br \/>\nSTOP SLAVE;<\/p>\n<p>2. on the slave that will be master there should be no binary logs floating around. issue:<br \/>\nRESET MASTER;<\/p>\n<p>3. change the ip address of the new master to that of the old (or not, and update your clients instead)<\/p>\n<p>4. on the replicating slaves issue<br \/>\nCHANGE MASTER TO (with connection info but no log file or position)<br \/>\nthen<br \/>\nSTART SLAVE;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. on all replicating slaves issue: STOP SLAVE; 2. on the slave that will be master there should be no binary logs floating around. issue: RESET MASTER; 3. change the ip address of the new master to that of the &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=1125\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1125"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1125"}],"version-history":[{"count":1,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1125\/revisions"}],"predecessor-version":[{"id":1126,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1125\/revisions\/1126"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}