{"id":10264,"date":"2022-10-09T02:08:02","date_gmt":"2022-10-09T09:08:02","guid":{"rendered":"https:\/\/www.xh86.me\/?p=10264"},"modified":"2022-10-09T02:08:02","modified_gmt":"2022-10-09T09:08:02","slug":"%e6%9c%80%e5%85%a8%e9%9d%a2%e7%9a%84mysql%e9%ab%98%e5%8f%af%e7%94%a8%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=10264","title":{"rendered":"\u6700\u5168\u9762\u7684MySQL\u9ad8\u53ef\u7528\u65b9\u6848"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<p style=\"text-align: left; margin-bottom: 0em;\" data-mpa-powered-by=\"yiban.io\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-85e23dd7aa3fc9a9975bd85a13ebf4ae.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-85e23dd7aa3fc9a9975bd85a13ebf4ae.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.4007936507936508\" data-s=\"300,640\" data-type=\"png\" data-w=\"1008\" \/><\/div><\/p>\n<p style=\"text-align: left;\">\u9ad8\u53ef\u7528\u662f\u6570\u636e\u5e93\u6c38\u6052\u7684\u8bdd\u9898\uff0c\u9ad8\u53ef\u7528\u65b9\u6848\u4e5f\u662f\u6700\u53d7\u6570\u636e\u5e93\u7231\u597d\u8005\u5173\u6ce8\u7684\u91cd\u70b9\u6280\u672f\u4e4b\u4e00\u3002\u5728MySQL\u4e8c\u5341\u591a\u5e74\u7684\u53d1\u5c55\u5386\u7a0b\u4e2d\uff0c\u9488\u5bf9MySQL\u7684\u9ad8\u53ef\u7528\u65b9\u6848\u767e\u82b1\u9f50\u653e\uff0c\u5404\u5177\u7279\u8272\uff0c\u8fd9\u4e5f\u662f\u8fd9\u6b3e\u5f00\u6e90\u6570\u636e\u5e93\u6700\u80fd\u8ba9\u4eba\u7740\u8ff7\u7684\u5730\u65b9\u3002\u4f8b\u5982\uff0c\u65e9\u4e9b\u5e74\u8457\u540d\u7684MMM\u3001MHA\u7b49\u7b49\u3002\u968f\u7740MySQL\u5b98\u65b9\u7684\u4e0d\u65ad\u53d1\u529b\uff0c\u5728\u57fa\u4e8eMySQL\u590d\u5236\u7684\u57fa\u7840\u4e0a\uff0c\u63a8\u51fa\u4e86\u4e00\u7cfb\u5217\u7684\u9ad8\u53ef\u7528\u65b9\u6848\uff0c\u4f8b\u5982\uff0c\u4e3b\u4ece\u534a\u540c\u6b65\u590d\u5236\u3001InnoDB ReplicaSet\u3001\u7ec4\u590d\u5236\uff08MGR\uff09\u3001InnoDB Cluster\uff0c\u53ca\u76ee\u524d\u6700\u65b0\u7684InnoDB ClusterSet\u3002<\/p>\n<p style=\"text-align: left;\">\u5728\u8fd9\u4e00\u7bc7\u6587\u7ae0\u91cc\uff0c\u5c06\u5411\u5404\u4f4d\u8bfb\u8005\u4ecb\u7ecd\u5404\u79cd\u65b9\u6848\u7684\u4f18\u7f3a\u70b9\uff0c\u53ca\u9002\u7528\u573a\u666f\u3002\u5728\u4ecb\u7ecd\u5404\u79cd\u65b9\u6848\u4e4b\u524d\uff0c\u8bfb\u8005\u9996\u5148\u5fc5\u987b\u4e86\u89e3MySQL\u590d\u5236\u529f\u80fd\uff0cMySQL\u7684\u9ad8\u53ef\u7528\u65b9\u6848\u51e0\u4e4e\u5168\u90e8\u662f\u57fa\u4e8eMySQL\u590d\u5236\u5b9e\u73b0\u7684\u3002<\/p>\n<p style=\"text-align: left;\">MySQL\u7684\u590d\u5236\u529f\u80fd\uff08\u4e4b\u524d\u53eb\u505aMaster Slave replication\uff0c\u73b0\u5728\u6539\u4e3a Source Replica replication\uff09\u3002MySQL\u80fd\u591f\u4ea7\u751f\u4e00\u4e2a\u4e8c\u8fdb\u5236\u65e5\u5fd7\uff08binlog\uff09\uff0c\u5f53MySQL\u5f00\u542f\u8be5\u529f\u80fd\u540e\uff0c\u80fd\u591f\u5c06MySQL\u670d\u52a1\u5668\u6240\u4ea7\u751f\u7684\u5168\u90e8\u4e8b\u4ef6\u8bb0\u5f55\u5728\u65e5\u5fd7\u5185\u3002MySQL\u7684\u590d\u5236\u529f\u80fd\u5c06binlog\u4f20\u9012\u5230\u53e6\u5916\u4e00\u53f0\u670d\u52a1\u5668\uff08\u53ef\u4ee5\u5c06\u5176\u79f0\u4e4b\u4e3a\u4ece\u670d\u52a1\u5668\uff0cSlave\u6216\u8005Replica\uff0c\u53d1\u9001binlog\u7684\u670d\u52a1\u5668\u79f0\u4e4b\u4e3a\u4e3b\u670d\u52a1\u5668\uff09\uff0c\u4ece\u670d\u52a1\u5668\u63a5\u53d7\u5230binlog\u540e\uff0c\u5c06\u65e5\u5fd7\u8bb0\u5f55\u7684\u4e8b\u4ef6\u8fdb\u884c\u5e94\u7528\uff0c\u4ee5\u6b64\u8fbe\u5230\u4e24\u53f0\u670d\u52a1\u5668\u6570\u636e\u4e00\u81f4\u7684\u76ee\u7684\uff0c\u56e0\u6b64\uff0c\u5b9e\u73b0\u4e86\u590d\u5236\u3002\u4e3b\u4ece\u590d\u5236\u7684\u539f\u7406\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p style=\"text-align: left; margin-bottom: 0em;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-9fc4d5ba91200a807598ebdc3fd4f694.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-9fc4d5ba91200a807598ebdc3fd4f694.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.38515625\" data-s=\"300,640\" data-type=\"png\" data-w=\"1280\" \/><\/div><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\u65b9\u6848\u4e00\u2014\u2014MMM<\/p>\n<p>MMM(Multi-Master Replication Manager)\u662f\u4e00\u7ec4\u7075\u6d3b\u7684\u811a\u672c\uff0c\u7528\u4e8e\u6267\u884c MySQL \u4e3b-\u4e3b\u590d\u5236\u914d\u7f6e\u7684\u76d1\u89c6\/\u6545\u969c\u8f6c\u79fb\u548c\u7ba1\u7406\uff08\u4efb\u4f55\u65f6\u5019\u53ea\u6709\u4e00\u4e2a\u8282\u70b9\u53ef\u5199\uff09\u3002<\/p>\n<p style=\"text-align: left;\">MMM\u591a\u7528\u4e8e\u4ee5\u4e0b2\u79cd\u573a\u666f\uff1a<\/p>\n<p style=\"text-align: left;\">\u4e24\u4e2a\u8282\u70b9\uff1a<\/p>\n<p style=\"text-align: left; margin-bottom: 0em;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-63bcc952c5615ccf1b3e4b626a9a8bb1.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-63bcc952c5615ccf1b3e4b626a9a8bb1.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.5408388520971302\" data-s=\"300,640\" data-type=\"png\" data-w=\"906\" \/><\/div><\/p>\n<p style=\"text-align: left;\">\u5728\u4e24\u4e2a\u8282\u70b9\u7684\u4e3b-\u4e3b\u8bbe\u7f6e\u4e2d\uff0cMMM\u4f7f\u7528\u4e86\u4e94\u4e2aIP\uff0c\u6bcf\u4e2a\u8282\u70b9\u53ea\u6709\u4e00\u4e2a\u6c38\u4e45IP\uff0c2\u4e2a\u8bfb\u53d6IP(\u53ea\u8bfb)\u548c1\u4e2a\u5199\u5165IP(\u66f4\u65b0)\u3002\u540e\u9762\u4e09\u4e2aIP\u6839\u636e\u8282\u70b9\u53ef\u7528\u6027\u5728\u8282\u70b9\u4e4b\u95f4\u5207\u6362\u3002<\/p>\n<p style=\"text-align: left;\">\u6b63\u5e38\u60c5\u51b5\u4e0b(\u6ca1\u6709\u590d\u5236\u5931\u8d25\uff0c\u6ca1\u6709\u590d\u5236\u5ef6\u8fdf\u7b49)\u4e3b\u670d\u52a1\u5668\u67092\u4e2aIP(\u8bfb\u53d6\u548c\u5199\u5165)\uff0c\u5907\u7528\u670d\u52a1\u5668- 1\u4e2aIP(\u8bfb\u53d6)\u3002\u5728\u53d1\u751f\u6545\u969c\u65f6\uff0c- \u5199\u5165\u548c\u8bfb\u53d6\u89d2\u8272\u90fd\u4f1a\u8fc1\u79fb\u5230\u5de5\u4f5c\u8282\u70b9\u3002<\/p>\n<p style=\"text-align: left;\">\u4e24\u4e2a\u4e3b\u670d\u52a1\u5668\uff0c\u4e00\u4e2a\u6216\u591a\u4e2a\u4ece\u670d\u52a1\u5668\uff1a<\/p>\n<p style=\"text-align: left; margin-bottom: 0em;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-ad162a5912bb3e799c35f274b8e874ae.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-ad162a5912bb3e799c35f274b8e874ae.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.5383022774327122\" data-s=\"300,640\" data-type=\"png\" data-w=\"966\" \/><\/div><\/p>\n<p style=\"text-align: left;\">\u5728\u8fd9\u4e2a\u573a\u666f\u4e2d\uff0c\u5199\u5165IP\u53ea\u80fd\u5728\u4e24\u53f0\u4e3b\u670d\u52a1\u5668\u4e4b\u95f4\u8fdb\u884c\u5207\u6362\uff0c\u8bfb\u53d6IP\u53ef\u4ee5\u5728\u4e3b\u4ece\u4e4b\u95f4\u5207\u6362\u3002<span style=\"color: #4d4d4d; font-family: -apple-system, 'SF UI Text', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: no-common-ligatures; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\u901a\u8fc7MMM\u65b9\u6848\u7528\u6237\u80fd\u5b9e\u73b0\u670d\u52a1\u5668\u7684\u6545\u969c\u8f6c\u79fb\uff0c\u4ece\u800c\u5b9e\u73b0MySQL\u7684\u9ad8\u53ef\u7528\u3002<\/span><\/p>\n<p style=\"text-align: left;\">MMM\u7684<span style=\"background-color: transparent; caret-color: var(--weui-BRAND); letter-spacing: 0.034em;\">\u4e3b\u8981\u529f\u80fd\u7531\u4e09\u4e2a\u811a\u672c\u63d0\u4f9b: mmm_mond \u8d1f\u8d23\u76d1\u63a7\u5de5\u4f5c\u7684\u5b88\u62a4\u8fdb\u7a0b\uff0c\u51b3\u5b9a\u662f\u5426\u5c06\u8282\u70b9\u8fdb\u884c\u79fb\u9664(mmm_mond\u8fdb\u884c\u5fc3\u8df3\u68c0\u6d4b\uff0c\u5982\u679c\u68c0\u6d4b\u5230\u5931\u8d25\uff0c\u5219\u5c06\u5199\u5165IP\u5207\u6362\u5230\u53e6\u5916\u4e00\u53f0\u4e3b\u670d\u52a1\u5668) mmm_agentd \u662f\u8fd0\u884c\u5728mysql\u670d\u52a1\u5668\u4e0a\u7684\u4ee3\u7406\u5b88\u62a4\u8fdb\u7a0b\uff0cmmm_control \u901a\u8fc7\u547d\u4ee4\u884c\u7ba1\u7406mmm_mond\u8fdb\u7a0b\u3002<\/span><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\u4f18\u70b9\uff1a\u9ad8\u53ef\u7528\u6027\uff0c\u6269\u5c55\u6027\u597d\uff0c\u51fa\u73b0\u6545\u969c\u81ea\u52a8\u5207\u6362\uff0c\u5bf9\u4e8e\u4e3b\u4e3b\u540c\u6b65\uff0c\u5728\u540c\u4e00\u65f6\u95f4\u53ea\u63d0\u4f9b\u4e00\u53f0\u6570\u636e\u5e93\u5199\u64cd\u4f5c\uff0c\u4fdd\u8bc1\u6570\u636e\u7684\u4e00\u81f4\u6027\u3002\u5f53\u4e3b\u670d\u52a1\u5668\u53d1\u751f\u6545\u969c\u540e\uff0c\u53e6\u4e00\u4e2a\u4e3b\u670d\u52a1\u5668\u7acb\u5373\u63a5\u7ba1\uff0c\u5176\u4ed6\u7684\u4ece\u670d\u52a1\u5668\u80fd\u81ea\u52a8\u5207\u6362\uff0c\u4e0d\u7528\u4eba\u5de5\u5e72\u9884\u3002<\/p>\n<p style=\"text-align: left;\">\u7f3a\u70b9\uff1a\u76d1\u63a7\u8282\u70b9\u4f1a\u53d1\u751f\u5355\u70b9\u6545\u969c\u3002\u5e76\u4e14\u5bf9\u4e3b\u673a\u7684\u6570\u91cf\u6709\u8981\u6c42\uff0c<span style=\"color: #333333; font-family: mp-quote, -apple-system-font, 'system-ui', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\u81f3\u5c11\u4e09\u4e2a\u8282\u70b9\u3002\u5982\u679c<\/span>\u9700\u8981\u5b9e\u73b0\u8bfb\u5199\u5206\u79bb,\u8fd8\u9700\u8981\u5728\u524d\u7aef\u7f16\u5199\u8bfb\u5199\u5206\u79bb\u7a0b\u5e8f\u3002\u5728\u8bfb\u5199\u975e\u5e38\u7e41\u5fd9\u7684\u4e1a\u52a1\u7cfb\u7edf\u4e0b\u8868\u73b0\u4e0d\u662f\u5f88 \u7a33\u5b9a\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u590d\u5236\u5ef6\u65f6\u3001\u5207\u6362\u5931\u6548\u7b49\u95ee\u9898\u3002MMM\u65b9\u6848\u5e76\u4e0d\u592a\u9002\u5e94\u4e8e\u5bf9\u6570\u636e\u5b89\u5168\u6027\u8981\u6c42\u5f88\u9ad8\uff0c\u5e76\u4e14\u8bfb\u3001\u5199\u7e41\u5fd9\u7684\u73af\u5883\u4e2d\u3002<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #4d4d4d; font-family: -apple-system, 'SF UI Text', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: no-common-ligatures; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\u65b9\u6848\u4e8c\u2014\u2014MHA<br \/>\n<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"color: #4d4d4d; font-family: -apple-system, 'SF UI Text', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: no-common-ligatures; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\"><span style=\"color: #333333; font-family: -apple-system, 'system-ui', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">MHA\uff08Master High Availability\uff09\u7531\u539fMySQL\u56e2\u961f\uff08Sun\u65f6\u4ee3\uff09\u7684<span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 17px; text-align: justify;\">Yoshinori Matsunobu\u5f00\u53d1\u3002\u53ef\u4ee5\u5b9e\u73b0\u6545\u969c\u5207\u6362\u548c\u4e3b\u4ece\u63d0\u5347\u529f\u80fd\u3002<span style=\"color: #333333; font-family: -apple-system, 'system-ui', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\u5728 MySQL \u6545\u969c\u5207\u6362\u8fc7\u7a0b\u4e2d\uff0cMHA \u80fd\u505a\u5230\u5728 0~30 \u79d2\u4e4b\u5185\u81ea\u52a8\u5b8c\u6210\u6570\u636e\u5e93\u7684\u6545\u969c\u5207\u6362\u64cd\u4f5c\uff0c\u5e76\u4e14\u5728\u8fdb\u884c\u6545\u969c\u5207\u6362\u7684\u8fc7\u7a0b\u4e2d\uff0cMHA \u80fd\u5728\u6700\u5927\u7a0b\u5ea6\u4e0a\u4fdd\u8bc1\u6570\u636e\u7684\u4e00\u81f4\u6027\uff0c\u4ee5\u8fbe\u5230\u771f\u6b63\u610f\u4e49\u4e0a\u7684\u9ad8\u53ef\u7528\u3002<\/span><\/span><br \/>\n<\/span><\/span><\/p>\n<p style=\"text-align: left; margin-bottom: 0em;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-2c61b9a0132fe2a059e7f36079f35450.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-2c61b9a0132fe2a059e7f36079f35450.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.6408227848101266\" data-s=\"300,640\" data-type=\"png\" data-w=\"1264\" \/><\/div><\/p>\n<p style=\"text-align: left;\">MHA\u7531\u4e24\u90e8\u5206\u7ec4\u6210\uff1aMHA Manager\uff08\u7ba1\u7406\u8282\u70b9\uff09\u548c MHA Node\uff08\u6570\u636e\u8282\u70b9\uff09\u3002\u7ba1\u7406\u8282\u70b9\u53ef\u4ee5\u5355\u72ec\u90e8\u7f72\u5728\u4e00\u53f0\u72ec\u7acb\u7684\u670d\u52a1\u5668\u4e0a\u7ba1\u7406\u591a\u4e2a\u4e3b\u4ece\u96c6\u7fa4\uff0c\u4e5f\u53ef\u4ee5\u90e8\u7f72\u5728\u4e00\u53f0 \u4ece\u670d\u52a1\u5668\u4e0a\u3002\u6570\u636e\u8282\u70b9\u8fd0\u884c\u5728\u6bcf\u53f0 MySQL \u670d\u52a1\u5668\u4e0a\u3002\u7ba1\u7406\u8282\u70b9\u4f1a\u5b9a\u65f6\u63a2\u6d4b\u96c6\u7fa4\u4e2d\u7684 \u4e3b\u670d\u52a1\u5668\uff0c\u5f53 \u4e3b\u670d\u52a1\u5668\u51fa\u73b0\u6545\u969c\u65f6\uff0c\u5b83\u53ef\u4ee5\u81ea\u52a8\u5c06\u5177\u6709\u6700\u65b0\u6570\u636e\u7684\u4ece\u670d\u52a1\u5668\u63d0\u5347\u4e3a\u65b0\u7684\u4e3b\u670d\u52a1\u5668\uff0c\u7136\u540e\u5c06\u6240\u6709\u5176\u4ed6\u7684\u4ece\u670d\u52a1\u5668\u91cd\u65b0\u6307\u5411\u65b0\u7684\u4e3b\u670d\u52a1\u5668\u3002\u6574\u4e2a\u6545\u969c\u8f6c\u79fb\u8fc7\u7a0b\u5bf9\u5e94\u7528\u7a0b\u5e8f\u5b8c\u5168\u900f\u660e\u3002<\/p>\n<p style=\"text-align: left;\">MHA\u7684\u4f18\u52bf\u5728\u4e8e\u53ef\u4ee5\u975e\u5e38\u5feb\u901f\u5730\u5b8c\u6210\u6545\u969c\u8f6c\u79fb\u53ca\u63d0\u5347\u4ece\u670d\u52a1\u5668\u89d2\u8272\u3001\u4e3b\u670d\u52a1\u5d29\u6e83\u65f6\u4e0d\u4f1a\u5bfc\u81f4\u6570\u636e\u4e0d\u4e00\u81f4\u3001\u7528\u6237\u65e0\u9700\u4fee\u6539\u5f53\u524d MySQL \u8bbe\u7f6e\u3001\u4e0d\u4f1a\u4ea7\u751f\u6027\u80fd\u635f\u5931\uff0c\u5e76\u4e14\u9002\u7528\u4e8e\u4efb\u4f55\u5b58\u50a8\u5f15\u64ce\u3002<\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; text-align: justify;\">MHA\u66fe\u7ecf\u975e\u5e38\u6d41\u884c\uff0c\u4f46\u968f\u7740MySQL\u5b98\u65b9\u7684\u9ad8\u53ef\u7528\u65b9\u6848\u4e0d\u65ad\u63a8\u51fa\uff0c\u4f5c\u8005\u5df2\u7ecf\u610f\u8bc6\u5230\uff0c\u66fe\u7ecfMHA\u6240\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u5df2\u7ecf\u9010\u6e10\u88ab\u5b98\u65b9\u7684\u89e3\u51b3\u65b9\u6848\u6240\u4ee3\u66ff\uff0c\u56e0\u6b64\uff0c\u4eceMySQL8.0\u5f00\u59cb\uff0c\u4f5c\u8005\u5df2\u7ecf\u4e0d\u5728\u5bf9MHA\u8fdb\u884c\u5f00\u53d1\u548c\u7ef4\u62a4\u3002<br \/>\n<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; text-align: justify;\">\u52a0\u5165\u4e00\u6761\u534e\u4e3d\u4e3d\u7684\u5206\u5272\u7ebf<div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-1541ba0d0c02c432fd64c1bc9d6d292a.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" style=\"display: inline-block; width: 20px; vertical-align: text-bottom; height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-1541ba0d0c02c432fd64c1bc9d6d292a.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"1\" data-type=\"png\" data-w=\"20\" \/><\/div><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\">mysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysqlmysql<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u4ee5\u4e0b\u4ecb\u7ecd\u7684\u65b9\u6848\u5747\u4e3a\u6765\u81eaMySQL\u56e2\u961f\u7684\u65b9\u6848\uff0c\u5305\u62ec\uff0cInnoDB ReplicaSet\u3001\u7ec4\u590d\u5236\uff08MySQL Group Replication MGR\uff09\u3001InnoDB Cluster\uff0c\u53caInnoDB ClusterSet\u3002<\/span><\/p>\n<p style=\"text-align: left;\">\u65b9\u6848\u4e09\u2014\u2014<span style=\"color: #333333; font-family: mp-quote, -apple-system-font, 'system-ui', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">MySQL InnoDB ReplicaSet<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">MySQL InnoDB ReplicaSet<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u6574\u5408\u4e86MySQL\u76f8\u5173\u6280\u672f\uff0c\u7528\u6237\u80fd\u591f\u901a\u8fc7MySQL Shell\u90e8\u7f72\u548c\u7ba1\u7406 MySQL\u4e3b\u4ece\u590d\u5236\u3002<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">InnoDB ReplicaSet\u81f3\u5c11\u7531\u4e24\u53f0MySQL\u670d\u52a1\u5668\u5b9e\u4f8b\u7ec4\u6210\uff0c\u5e76\u63d0\u4f9b\u7528\u6237\u719f\u77e5\u7684MySQL\u4e3b\u4ece\u590d\u5236\u529f\u80fd\uff0c\u4f8b\u5982\uff0c\u8bfb\u53d6\u6a2a\u5411\u6269\u5c55\u548c\u6570\u636e\u5b89\u5168\u6027\u3002<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">MySQL InnoDB ReplicaSet\u57fa\u4e8e\u5f02\u6b65\u7684\u4e3b\u4ece\u590d\u5236\u5b9e\u73b0\uff0c\u56e0\u6b64\u9002\u7528\u4e8e\u7528\u6237\u5bf9\u9ad8\u53ef\u7528\u6027\u8981\u6c42\u4e0d\u9ad8\u7684\u73af\u5883\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7MySQL Shell\u5feb\u901f\u642d\u5efa\u53ca\u7ba1\u7406\u4e3b\u4ece\u590d\u5236\uff0c\u907f\u514d\u4e86\u642d\u5efa\u4e3b\u4ece\u590d\u5236\u65f6\uff0c\u5927\u91cf\u7684\u624b\u52a8\u64cd\u4f5c\u3002<span style=\"color: #333333; font-family: mp-quote, -apple-system-font, 'system-ui', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\u00a0InnoDB<\/span><span style=\"color: #333333; font-family: mp-quote, -apple-system-font, 'system-ui', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\u00a0Replica<\/span><span style=\"color: #333333; font-family: mp-quote, -apple-system-font, 'system-ui', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">Set\u7684\u67b6\u6784\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/span><\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u00a0<\/span><\/p>\n<p style=\"text-align: left; margin-bottom: 0em;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-8e9163033e89ede6f4f33666d5c39aa0.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-8e9163033e89ede6f4f33666d5c39aa0.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.5924006908462867\" data-s=\"300,640\" data-type=\"png\" data-w=\"1158\" \/><\/div><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\u65b9\u6848\u56db\u2014\u2014\u7ec4\u590d\u5236<\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u7ec4\u590d\u5236\u662f\u4e00\u4e2aMySQL\u670d\u52a1\u5668\u63d2\u4ef6\uff0c\u53ef\u4ee5\u521b\u5efa\u5177\u6709\u5f39\u6027\u3001\u9ad8\u53ef\u7528\u6027\u548c\u5bb9\u9519\u7684\u590d\u5236\u62d3\u6251\u3002<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u7ec4\u590d\u5236\u57fa\u4e8e\u201cPaxos\u201d\u534f\u8bae\uff08\u201cMencius\u201d\uff09\u5b9e\u73b0\uff0c\u652f\u6301\u591a\u70b9\u5199\u5165\uff0c\u5177\u6709\u51b2\u7a81\u68c0\u6d4b\u548c\u89e3\u51b3\u673a\u5236\uff0c\u5b83\u5141\u8bb8\u5e94\u7528\u7a0b\u5e8f\u5199\u5165\u7684\u6570\u636e\u5728\u540c\u4e00\u7ec4\u5185\u7684\u6240\u6709\u670d\u52a1\u5668\u4e0a\u4fdd\u6301\u4e00\u81f4\u3002<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u7ec4\u590d\u5236\u5185\u7f6e\u7684\u6a21\u5757\u652f\u6301\u8de8\u5e73\u53f0\u7684\u5206\u5e03\u5f0f\u6062\u590d\uff0c\u5e76\u901a\u8fc7\u5185\u7f6e\u7684\u6545\u969c\u8f6c\u79fb\u673a\u5236\u5b9e\u73b0\u4e86\u5bb9\u9519\u3002<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u7ec4\u590d\u5236\u63d2\u4ef6\u7684\u67b6\u6784\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/span><\/p>\n<p style=\"text-align: left;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-0276eb5330ea9042188aa16cf6717d47.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"text-align: center; font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-0276eb5330ea9042188aa16cf6717d47.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.4359375\" data-s=\"300,640\" data-type=\"png\" data-w=\"1280\" \/><\/div><\/p>\n<p style=\"text-align: left;\">\u7ec4\u590d\u5236\u5141\u8bb8\u7528\u6237\u4ece\u73b0\u6709\u7684\u4e3b\u4ece\u590d\u5236\u5347\u7ea7\u5230\u7ec4\u590d\u5236\uff0c\u53ef\u4ee5\u786e\u4fdd\u4e00\u4e2a\u9ad8\u53ef\u7528\u7684MySQL\u670d\u52a1\u5206\u5e03\u5728\u591a\u4e2a\u5b9e\u4f8b\u4e2d\uff0c\u65e0\u9700\u4eba\u5de5\u5e72\u9884\u6765\u5b9e\u73b0\u5bb9\u9519\u3002<\/p>\n<p style=\"margin: 0px 0px 24px; padding: 0px; clear: both; min-height: 1em; color: #333333; font-family: mp-quote, -apple-system-font, 'system-ui', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\"><span style=\"margin: 0px; padding: 0px;\">\u7ec4\u590d\u5236\u80fd\u591f\u786e\u4fdd\u6570\u636e\u5e93\u670d\u52a1\u8fde\u7eed\u53ef\u7528\uff0c\u4f46\u6ca1\u6709\u63d0\u4f9b\u5185\u7f6e\u65b9\u6cd5\u8fdb\u884c\u6545\u969c\u8f6c\u79fb\u6216\u8d1f\u8f7d\u5747\u8861\u3002\u4e3a\u4e86\u5b9e\u73b0\u81ea\u52a8\u5316\u7684\u6545\u969c\u8f6c\u79fb\u548c\u8d1f\u8f7d\u5747\u8861\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u4e2d\u95f4\u4ef6\u6765\u5b9e\u73b0\u3002<\/span><\/p>\n<p style=\"text-align: left;\">\u65b9\u6848\u4e94\u2014\u2014MySQL InnoDB Cluster<\/p>\n<p style=\"text-align: left;\">MySQL InnoDB Cluster\u662f\u4e00\u5957\u5b8c\u6574\u90e8\u7f72\u548c\u7ba1\u7406MySQL\u7684\u9ad8\u53ef\u7528\u6027\u89e3\u51b3\u65b9\u6848\uff0c\u5176\u6574\u5408\u4e86MySQL\u7684\u591a\u9879\u6280\u672f\uff0c\u4ee5\u5f25\u8865\u7ec4\u590d\u5236\u65e0\u6cd5\u63d0\u4f9b\u5177\u6709\u81ea\u52a8\u5316\u6545\u969c\u8f6c\u79fb\u529f\u80fd\u7684\u4e2d\u95f4\u4ef6\uff0c\u65e0\u6cd5\u81ea\u52a8\u914d\u7f6e\u7b49\u4e0d\u8db3\u3002InnoDB Cluster\u9700\u8981\u81f3\u5c11\u4e09\u53f0MySQL\u670d\u52a1\u5668\u5b9e\u4f8b\u7ec4\u6210\uff0c\u5e76\u4e14\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u548c\u6269\u5c55\u529f\u80fd\u3002<\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">InnoDB Cluster\u5305\u62ec\u5982\u4e0b\u7ec4\u4ef6\uff1a<\/span><\/p>\n<p style=\"text-align: left;\">MySQL Shell\uff1aMySQL\u7684\u9ad8\u7ea7\u5ba2\u6237\u7aef\u3001\u7ba1\u7406\u5de5\u5177\u548c\u4ee3\u7801\u7f16\u8f91\u5668\u3002<\/p>\n<p style=\"text-align: left;\">MySQL\u670d\u52a1\u5668\u548c\u7ec4\u590d\u5236\uff1a\u4f7f\u4e00\u7ec4MySQL\u5b9e\u4f8b\u80fd\u591f\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u3002InnoDB Cluster\u63d0\u4f9b\u4e86\u4e00\u79cd\u66ff\u4ee3\u624b\u52a8\u914d\u7f6e\uff0c\u6613\u4e8e\u4f7f\u7528\u7684\u7f16\u7a0b\u65b9\u5f0f\u6765\u5904\u7406\u7ec4\u590d\u5236\u3002<\/p>\n<p style=\"text-align: left;\">MySQL Router\uff1a\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u4e2d\u95f4\u4ef6\uff0c\u63d0\u4f9b\u8d1f\u8f7d\u5747\u8861\u529f\u80fd\uff0c\u5e76\u53ef\u5728\u5e94\u7528\u7a0b\u5e8f\u548c\u591a\u53f0MySQL\u5b9e\u4f8b\u4e4b\u95f4\u63d0\u4f9b\u900f\u660e\u7684\u8fde\u63a5\u8def\u7531\u3002<\/p>\n<p style=\"text-align: left;\">InnoDB Cluster\u7684\u6574\u4f53\u67b6\u6784\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p style=\"text-align: left; margin-bottom: 0em;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-af610b63d76ac82c1b07e8a534b45de4.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-af610b63d76ac82c1b07e8a534b45de4.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.440625\" data-s=\"300,640\" data-type=\"png\" data-w=\"1280\" \/><\/div><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\u65b9\u6848\u516d\u2014\u2014MySQL InnoDB ClusterSet<\/p>\n<p style=\"text-align: left;\">MySQL InnoDB ClusterSet \u901a\u8fc7\u5c06\u4e3b\u8981\u7684InnoDB Cluster\u4e0e\u5176\u4ed6\u4f4d\u7f6e\uff08\u4f8b\u5982\uff0c\u4e0d\u540c\u6570\u636e\u4e2d\u5fc3\uff09\u7684\u4e00\u4e2a\u6216\u591a\u4e2a\u526f\u672c\u94fe\u63a5\uff0c\u4e3a InnoDB Cluster \u90e8\u7f72\u63d0\u4f9b\u5bb9\u707e\u80fd\u529b\u3002InnoDB ClusterSet \u4f7f\u7528\u4e13\u95e8\u7684ClusterSet \u590d\u5236\u901a\u9053\uff0c\u81ea\u52a8\u7ba1\u7406\u4ece\u4e3b\u8981\u96c6\u7fa4\u5230\u526f\u672c\u96c6\u7fa4\u7684\u590d\u5236\u3002\u5982\u679c\u4e3b\u8981\u96c6\u7fa4\u56e0\u6570\u636e\u4e2d\u5fc3\u635f\u6bc1\u6216\u7f51\u7edc\u8fde\u63a5\u4e22\u5931\u53d8\u5f97\u65e0\u6cd5\u4f7f\u7528\uff0c\u7528\u6237\u53ef\u4ee5\u6fc0\u6d3b\u526f\u672c\u96c6\u7fa4\u4ee5\u6062\u590d\u670d\u52a1\u7684\u53ef\u7528\u6027<span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u3002<span style=\"color: #333333; font-family: mp-quote, -apple-system-font, 'system-ui', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">InnoDB ClusterSet\u7684\u6574\u4f53\u67b6\u6784\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/span><\/span><\/p>\n<p style=\"text-align: left; margin-bottom: 0em;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-d751bd174cfaedfdcc5d018eeb28fa2e.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"height: auto !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/10\/wxsync-2022-10-d751bd174cfaedfdcc5d018eeb28fa2e.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.4453125\" data-s=\"300,640\" data-type=\"png\" data-w=\"1280\" \/><\/div><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">InnoDB ClusterSet<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u4f18\u5148\u8003\u8651\u53ef\u7528\u6027\u800c\u4e0d\u662f\u4e00\u81f4\u6027\uff0c\u4ee5\u6700\u5927<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u9650\u5ea6\u5730\u63d0\u9ad8\u7cfb\u7edf\u7684\u5bb9\u707e\u80fd\u529b\u3002<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u6b63\u5e38\u7684\u590d\u5236\u5ef6\u8fdf\u6216\u7f51\u7edc\u5206\u533a\u53ef\u80fd\u610f\u5473\u7740\u5728\u4e3b\u8981\u96c6\u7fa4\u9047\u5230\u95ee\u9898\u65f6\uff0c\u90e8\u5206\u6216\u5168\u90e8\u526f\u672c\u96c6\u7fa4\u4e0e\u4e3b\u8981\u96c6\u7fa4\u4e0d\u5b8c\u5168\u4e00\u81f4\u3002<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u5728\u8fd9\u4e9b\u573a\u666f\u4e2d\uff0c\u5982\u679c\u89e6\u53d1\u7d27\u6025\u6545\u969c\u8f6c\u79fb\uff0c\u4efb\u4f55\u672a\u590d\u5236\u6216\u53d1\u9001\u7684\u4e8b\u52a1\u90fd\u6709\u4e22\u5931\u7684\u98ce\u9669\uff0c\u5e76\u4e14\u53ea\u80fd\u7531\u7528\u6237\u8fdb\u884c\u624b\u52a8\u6062\u590d\u548c\u534f\u8c03\uff0c\u65e0\u6cd5\u4fdd\u8bc1\u5728\u53d1\u751f\u7d27\u6025\u6545\u969c\u8f6c\u79fb\u65f6\u4f1a\u4fdd\u7559\u6570\u636e\u3002<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\">\u5982\u679c\u7528\u6237\u65e0\u6cd5\u5bb9\u5fcd\u6545\u969c\u8f6c\u79fb\u671f\u95f4\u4e8b\u52a1\u6216\u6570\u636e\u4e22\u5931\uff0c\u5219\u4e0d\u80fd\u4f7f\u7528InnoDB ClusterSet\u4f5c\u4e3a\u7cfb\u7edf\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u4e00\u4e2aInnoDB Cluster\u4ee5\u53ca\u8de8\u591a\u4e2a\u6570\u636e\u4e2d\u5fc3\u90e8\u7f72\u7684\u6210\u5458\u670d\u52a1\u5668\u3002<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9ad8\u53ef\u7528\u662f\u6570\u636e\u5e93\u6c38\u6052\u7684\u8bdd\u9898\uff0c\u9ad8\u53ef\u7528\u65b9\u6848\u4e5f\u662f\u6700\u53d7\u6570\u636e\u5e93\u7231\u597d\u8005\u5173\u6ce8\u7684\u91cd\u70b9\u6280\u672f\u4e4b\u4e00\u3002\u5728MySQL\u4e8c\u5341\u591a\u5e74\u7684\u53d1\u5c55\u5386\u7a0b\u4e2d\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,3],"tags":[],"class_list":["post-10264","post","type-post","status-publish","format-standard","hentry","category-linux","category-system"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/10264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10264"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/10264\/revisions"}],"predecessor-version":[{"id":10338,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/10264\/revisions\/10338"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}