{"id":4043,"date":"2019-03-26T16:51:14","date_gmt":"2019-03-26T08:51:14","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=4043"},"modified":"2019-03-26T16:51:14","modified_gmt":"2019-03-26T08:51:14","slug":"mysql-binlog-%e6%89%8b%e5%8a%a8%e7%94%9f%e6%88%90%ef%bc%8c%e7%ab%8b%e5%8d%b3%e7%94%9f%e6%88%90-binlog-%e6%96%87%e4%bb%b6%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=4043","title":{"rendered":"MySQL Binlog \u624b\u52a8\u751f\u6210\uff0c\u7acb\u5373\u751f\u6210 binlog \u6587\u4ef6\u7684\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u6700\u8fd1\u6211\u5728\u4f7f\u7528 Canal \u505a binlog \u7684\u8ba2\u9605\u670d\u52a1\u3002\u7531\u4e8e\u963f\u91cc\u4e91 RDS \u5f00\u542f binlog \u8ba2\u9605\u9700\u8981\u6536\u8d39\uff0c\u592a\u5751\u4e86\uff0c\u800c\u4e14\u8fd8\u5f88\u8d35\u3002\u4e8e\u662f\u6211\u4eec\u5c31\u51b3\u5b9a\u4f7f\u7528 rds oss binlog \u79bb\u7ebf\u8ba2\u9605\u8bfb\u53d6\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u67d0\u4e9b\u4e1a\u52a1\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u5b9e\u9645\u4f7f\u7528 canal \u4e2d\uff0c\u6211\u4eec\u914d\u7f6e\u597d\u4e4b\u540e\uff0cbinlog \u6587\u4ef6\u5374\u4e00\u76f4\u90fd\u4e0d\u4ea7\u751f\u3002\u4e8e\u662f\uff0c\u6211\u5c31\u5728\u60f3\u80fd\u4e0d\u80fd\u7acb\u5373\u8ba9 MySQL \u751f\u6210\u4e00\u4e2a binlog \u6587\u4ef6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7f51\u4e0a\u641c\u7d22\u4e86\u5f88\u4e45\uff0c\u53d1\u73b0\u8fd9\u65b9\u9762\u7684\u8d44\u6599\u975e\u5e38\u7684\u5c11\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u800c\u901a\u8fc7\u5b98\u7f51\u53d1\u73b0\uff0cMySQL Binlog \u65e5\u5fd7\u7684\u751f\u6210\u89c4\u5219\u6bd4\u8f83\u5751\u3002MySQL \u5b9e\u4f8b\u7a7a\u95f4\u5185\u751f\u6210 binlog \u65e5\u5fd7\u7684\u89c4\u5219\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5f53\u524dbinlog\u5927\u5c0f\u8d85\u8fc7500MB\u6216\u8d85\u8fc76\u5c0f\u65f6\u4f1a\u5207\u6362\u5230\u4e0b\u4e00\u5e8f\u53f7\u6587\u4ef6\u7ee7\u7eed\u5199\u5165\uff0c\u5373\u5199\u6ee1500MB\u6216\u8d85\u8fc76\u5c0f\u65f6\u5c31\u4f1a\u751f\u6210\u65b0\u7684binlog\u65e5\u5fd7\u6587\u4ef6\u3002\u65b0\u7684binlog\u6587\u4ef6\u7ee7\u7eed\u5199\u5165\uff0c\u8001\u7684binlog\u6587\u4ef6\u5e76\u4e0d\u4f1a\u7acb\u523b\u4e0a\u4f20\uff0c\u4f1a\u5f02\u6b65\u4e0a\u4f20\u3002<\/li><li>\u6709\u4e9b\u60c5\u51b5\u4e0b\uff0cbinlog\u65e5\u5fd7\u4e0d\u6ee1500MB\u5c31\u4e0d\u518d\u5199\u5165\uff0c\u6bd4\u5982\u7531\u4e8e\u547d\u4ee4\u7684\u6267\u884c\u3001\u7cfb\u7edf\u91cd\u542f\u7b49\u539f\u56e0\u3002<\/li><li>\u6709\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f1a\u51fa\u73b0binlog\u6587\u4ef6\u5c3a\u5bf8\u8d85\u8fc7500MB\u7684\u60c5\u51b5\uff0c\u6bd4\u5982\u5f53\u65f6\u5728\u6267\u884c\u5927\u4e8b\u52a1\uff0c\u4e0d\u65ad\u5199\u5165binlog\u5bfc\u81f4\u5f53\u524dbinlog\u6587\u4ef6\u5c3a\u5bf8\u8d85\u8fc7500MB\u3002<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u89c4\u5219\u592a bug \u4e86\u3002500M \u548c 6 \u5c0f\u65f6\uff0c\u6211\u4eec\u90fd\u7b49\u4e0d\u8d77\uff0c\u4e8e\u662f\u6211\u7ee7\u7eed\u5728\u5b98\u65b9\u67e5\u8d44\u6599\u3002\u6700\u7ec8\u6709\u4e86\u65b0\u7684\u53d1\u73b0\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 mysql \u4e2d flush logs \u64cd\u4f5c\u4f1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684 binlog \u6587\u4ef6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u5728\u4ece\u5e93\u6267\u884c flush logs \u4e0d\u4ec5\u4f1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684 binlog \u6587\u4ef6\uff0c\u800c\u4e14\u4f1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684 relaylog \u6587\u4ef6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u4ec5\u5982\u6b64\uff0cflush logs \u8fd8\u5f71\u54cd slow log \u548c general log\uff0c\u5f53\u5220\u9664 slow log \u6216\u8005 general log\uff0c\u7136\u540e\u6267\u884c flush logs\uff0c\u6b64\u65f6\u4f1a\u518d\u91cd\u65b0\u751f\u6210\u4e00\u4e2a\u65b0\u7684 slow log \u6216\u8005 general log\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f46\u6211\u7531\u4e8e\u662f\u5728\u6d4b\u8bd5\u5e93\u4e2d\u8fdb\u884c\uff0c\u4e0d\u5f71\u54cd\u73b0\u5b9e\u4e1a\u52a1\uff0c\u6240\u4ee5\uff0c\u53ef\u4ee5\u968f\u4fbf\u7684\u8fdb\u884c flush logs\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=4043\">MySQL Binlog \u624b\u52a8\u751f\u6210\uff0c\u7acb\u5373\u751f\u6210 binlog \u6587\u4ef6\u7684\u65b9\u6cd5<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u6211\u5728\u4f7f\u7528 Canal \u505a binlog \u7684\u8ba2\u9605\u670d\u52a1\u3002\u7531\u4e8e\u963f\u91cc\u4e91 RDS \u5f00\u542f binlog \u8ba2\u9605\u9700\u8981\u6536\u8d39\uff0c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[83,392,391,393,447],"class_list":["post-4043","post","type-post","status-publish","format-standard","hentry","category-sql","tag-mysql"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4043"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4043\/revisions"}],"predecessor-version":[{"id":4044,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4043\/revisions\/4044"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}