{"id":80,"date":"2014-04-03T10:19:51","date_gmt":"2014-04-03T08:19:51","guid":{"rendered":"http:\/\/www.ritter.cc\/?page_id=80"},"modified":"2014-04-03T10:19:51","modified_gmt":"2014-04-03T08:19:51","slug":"mysql-master-slave-replikation-nach-fehler-fortsetzen","status":"publish","type":"page","link":"https:\/\/www.ritter.cc\/?page_id=80","title":{"rendered":"MySQL &#8211; Master-Slave Replikation nach Fehler fortsetzen"},"content":{"rendered":"<p>During the last few weeks, I\u2019ve spent quite a bit of time working on different proofs of concept for our MySQL servers. During my tests, I broke MySQL\u2019s replication more than once. I always had to turn to Google to get the specific query to run to fix it, when I only wanted to skip one event.<\/p>\n<p>So since it\u2019s easier for me, I\u2019ll keep it here on my blog. Hopefully, that can help someone else too.<\/p>\n<p>So. You happen to check the status of your slave and it\u2019s not replicating anymore. As you can see below, the Seconds_Behind_Master is NULL. That\u2019s not good. You can also see the ID of the last error.<br \/>\n<a href=\"http:\/\/www.ritter.cc\/wp-content\/uploads\/2014\/04\/MySQL-Replikation.tiff\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.ritter.cc\/wp-content\/uploads\/2014\/04\/MySQL-Replikation.tiff\" alt=\"MySQL-Replikation\" width=\"1\" height=\"1\" class=\"alignnone size-medium wp-image-81\" \/><\/a><br \/>\nIn order to get the slave to skip that transaction, you need to follow this procedure:<\/p>\n<pre>mysql>STOP SLAVE; SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE;<\/pre>\n<p>You can verify with SHOW SLAVE STATUS that your slave is now functioning properly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During the last few weeks, I\u2019ve spent quite a bit of time working on different proofs of concept for our<\/p>\n<p><a href=\"https:\/\/www.ritter.cc\/?page_id=80\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">MySQL &#8211; Master-Slave Replikation nach Fehler fortsetzen<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":52,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-80","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=80"}],"version-history":[{"count":1,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages\/80\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages\/80\/revisions\/82"}],"up":[{"embeddable":true,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages\/52"}],"wp:attachment":[{"href":"https:\/\/www.ritter.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}