{"id":7026,"date":"2024-11-14T12:08:11","date_gmt":"2024-11-14T04:08:11","guid":{"rendered":"https:\/\/fwq.ai\/blog\/7026\/"},"modified":"2024-11-14T12:08:11","modified_gmt":"2024-11-14T04:08:11","slug":"%e5%a6%82%e4%bd%95%e8%8e%b7%e5%8f%96%e5%bd%93%e5%89%8d-mysql-%e5%ae%9e%e4%be%8b%e4%b8%ad%e6%ad%a3%e5%9c%a8%e4%bd%bf%e7%94%a8%e7%9a%84-binlog-%e6%96%87%e4%bb%b6%e5%90%8d%e5%92%8c%e5%81%8f%e7%a7%bb","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/7026\/","title":{"rendered":"\u5982\u4f55\u83b7\u53d6\u5f53\u524d MySQL \u5b9e\u4f8b\u4e2d\u6b63\u5728\u4f7f\u7528\u7684 Binlog \u6587\u4ef6\u540d\u548c\u504f\u79fb\u91cf\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173029593784531.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u83b7\u53d6\u5f53\u524d MySQL \u5b9e\u4f8b\u4e2d\u6b63\u5728\u4f7f\u7528\u7684 Binlog \u6587\u4ef6\u540d\u548c\u504f\u79fb\u91cf\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u83b7\u53d6\u5f53\u524d MySQL \u5b9e\u4f8b\u4e2d\u6b63\u5728\u4f7f\u7528\u7684 Binlog \u6587\u4ef6\u540d\u548c\u504f\u79fb\u91cf\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u83b7\u53d6  \u5b9e\u4f8b\u7684 binlog \u6587\u4ef6\u548c\u504f\u79fb\u91cf<\/strong><\/p>\n<p>\u5982\u4f55\u83b7\u53d6\u5f53\u524d mysql \u5b9e\u4f8b\u4e2d\u6b63\u5728\u4f7f\u7528\u7684 binlog \u6587\u4ef6\u7684\u540d\u79f0\u548c\u504f\u79fb\u91cf\uff1f<\/p>\n<p><strong>\u89e3\u7b54<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>show master status;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u547d\u4ee4\u5c06\u8fd4\u56de\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n<pre>File: binlog.000001\nPosition: 107\nBinlog_Do_DB:\nBinlog_Ignore_DB:<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>file \u5217\u663e\u793a\u5f53\u524d binlog \u6587\u4ef6\u7684\u540d\u79f0\u3002<\/li>\n<li>position \u5217\u663e\u793a\u5f53\u524d binlog \u6587\u4ef6\u7684\u504f\u79fb\u91cf\u3002<\/li>\n<\/ul>\n<p>\u4e3e\u4f8b\u6765\u8bf4\uff0c\u5982\u679c\u8fd4\u56de\u7684\u6587\u4ef6\u540d\u662f binlog.000001\uff0c\u504f\u79fb\u91cf\u662f 107\uff0c\u5219\u8868\u793a\u5f53\u524d\u6b63\u5728\u4f7f\u7528 binlog.000001 \u6587\u4ef6\uff0c\u4e14\u6587\u4ef6\u504f\u79fb\u91cf\u4e3a 107\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u83b7\u53d6\u5f53\u524d MySQL \u5b9e\u4f8b\u4e2d\u6b63\u5728\u4f7f\u7528\u7684 Binlog \u6587\u4ef6\u540d\u548c\u504f\u79fb\u91cf\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u83b7\u53d6 \u5b9e\u4f8b\u7684 binlog \u6587\u4ef6\u548c\u504f\u79fb\u91cf \u5982\u4f55\u83b7\u53d6\u5f53\u524d mysql \u5b9e\u4f8b\u4e2d\u6b63\u5728\u4f7f\u7528\u7684 binlog \u6587\u4ef6\u7684\u540d\u79f0\u548c\u504f\u79fb\u91cf\uff1f \u89e3\u7b54 \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a show master status; \u767b\u5f55\u540e\u590d\u5236 \u6b64\u547d\u4ee4\u5c06\u8fd4\u56de\u4ee5\u4e0b\u4fe1\u606f\uff1a File: binlog.000001 Position: 107 Binlog_Do_DB: Binlog_Ignore_DB: \u767b\u5f55\u540e\u590d\u5236 file \u5217\u663e\u793a\u5f53\u524d binlog \u6587\u4ef6\u7684\u540d\u79f0\u3002 position \u5217\u663e\u793a\u5f53\u524d binlog \u6587\u4ef6\u7684\u504f\u79fb\u91cf\u3002 \u4e3e\u4f8b\u6765\u8bf4\uff0c\u5982\u679c\u8fd4\u56de\u7684\u6587\u4ef6\u540d\u662f binlog.000001\uff0c\u504f\u79fb\u91cf\u662f 107\uff0c\u5219\u8868\u793a\u5f53\u524d\u6b63\u5728\u4f7f\u7528 binlog.000001 \u6587\u4ef6\uff0c\u4e14\u6587\u4ef6\u504f\u79fb\u91cf\u4e3a 107\u3002 \u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u83b7\u53d6\u5f53\u524d MySQL \u5b9e\u4f8b\u4e2d\u6b63\u5728\u4f7f\u7528\u7684 Binlog \u6587\u4ef6\u540d\u548c\u504f\u79fb\u91cf\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-7026","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=7026"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7026\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=7026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=7026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=7026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}