{"id":7210,"date":"2022-04-22T14:43:07","date_gmt":"2022-04-22T21:43:07","guid":{"rendered":"https:\/\/www.xh86.me\/?p=7210"},"modified":"2022-04-22T14:43:07","modified_gmt":"2022-04-22T21:43:07","slug":"mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e6%9f%a5%e8%af%a2%e5%a5%bd%e6%85%a2%ef%bc%8c%e9%99%a4%e4%ba%86%e7%b4%a2%e5%bc%95%ef%bc%8c%e8%bf%98%e8%83%bd%e5%9b%a0%e4%b8%ba%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=7210","title":{"rendered":"\u200bMysql\u6570\u636e\u5e93\u67e5\u8be2\u597d\u6162\uff0c\u9664\u4e86\u7d22\u5f15\uff0c\u8fd8\u80fd\u56e0\u4e3a\u4ec0\u4e48\uff1f"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<section data-mpa-template=\"t\" data-mpa-powered-by=\"yiban.io\">\n<section style=\"font-size: 16px; color: #3e3e3e; line-height: 1.6; word-spacing: 1.5px; letter-spacing: 1.5px; background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0) 5%), linear-gradient(360deg, rgba(50, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0) 5%); background-size: 20px 20px; background-position: center center;\">\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6211\u719f\u7ec3\u5e94\u7528ctrl c\u548cctrl v \u5f00\u53d1curd\u4ee3\u7801\u597d\u591a\u5e74\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">mysql\u67e5\u8be2\u4e3a\u4ec0\u4e48\u4f1a\u6162\uff0c\u5173\u4e8e\u8fd9\u4e2a\u95ee\u9898\uff0c\u5728\u5b9e\u9645\u5f00\u53d1\u7ecf\u5e38\u4f1a\u9047\u5230\uff0c\u800c\u9762\u8bd5\u4e2d\uff0c\u4e5f\u662f\u4e2a\u9ad8\u9891\u9898\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u9047\u5230\u8fd9\u79cd\u95ee\u9898\uff0c\u6211\u4eec\u4e00\u822c\u4e5f\u4f1a\u60f3\u5230\u662f\u56e0\u4e3a\u7d22\u5f15\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\"><strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u90a3\u9664\u5f00\u7d22\u5f15\u4e4b\u5916\uff0c\u8fd8\u6709\u54ea\u4e9b\u56e0\u7d20\u4f1a\u5bfc\u81f4\u6570\u636e\u5e93\u67e5\u8be2\u53d8\u6162\u5462\uff1f<\/strong><\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\"><strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u6709\u54ea\u4e9b\u64cd\u4f5c\uff0c\u53ef\u4ee5\u63d0\u5347mysql\u7684\u67e5\u8be2\u80fd\u529b\u5462\uff1f<\/strong><\/p>\n<h3 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #1565c0;\"><span style=\"font-size: inherit; line-height: inherit; display: inline-block; font-weight: normal; background: #1565c0; color: #ffffff; padding-top: 3px; padding-right: 10px; padding-left: 10px; border-top-right-radius: 3px; border-top-left-radius: 4px; margin-right: 2px;\">\u6570\u636e\u5e93\u67e5\u8be2\u6d41\u7a0b<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6211\u4eec\u5148\u6765\u770b\u4e0b\uff0c\u4e00\u6761\u67e5\u8be2\u8bed\u53e5\u4e0b\u6765\uff0c\u4f1a\u7ecf\u5386\u54ea\u4e9b\u6d41\u7a0b\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6bd4\u5982\u6211\u4eec\u6709\u4e00\u5f20\u6570\u636e\u5e93\u8868<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\"><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">CREATE<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">TABLE<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`user`<\/span>\u00a0(\r\n\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`id`<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">int<\/span>(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">10<\/span>)\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">unsigned<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">NOT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">NULL<\/span>\u00a0AUTO_INCREMENT\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">COMMENT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'\u4e3b\u952e'<\/span>,\r\n\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`name`<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">varchar<\/span>(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">100<\/span>)\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">NOT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">NULL<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">DEFAULT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">''<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">COMMENT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'\u540d\u5b57'<\/span>,\r\n\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`age`<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">int<\/span>(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">11<\/span>)\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">NOT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">NULL<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">DEFAULT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'0'<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">COMMENT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'\u5e74\u9f84'<\/span>,\r\n\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`gender`<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">int<\/span>(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">8<\/span>)\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">NOT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">NULL<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">DEFAULT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'0'<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">COMMENT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'\u6027\u522b'<\/span>,\r\n\u00a0\u00a0PRIMARY\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">KEY<\/span>\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`id`<\/span>),\r\n\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">KEY<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`idx_age`<\/span>\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`age`<\/span>),\r\n\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">KEY<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`idx_gender`<\/span>\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`gender`<\/span>)\r\n)\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">ENGINE<\/span>=<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">InnoDB<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">DEFAULT<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">CHARSET<\/span>=utf8;\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6211\u4eec\u5e73\u5e38\u5199\u7684\u5e94\u7528\u4ee3\u7801\uff08go\u6216C++\u4e4b\u7c7b\u7684\uff09\uff0c\u8fd9\u65f6\u5019\u5c31\u53eb<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5ba2\u6237\u7aef<\/strong>\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5ba2\u6237\u7aef\u5e95\u5c42\u4f1a\u5e26\u7740\u8d26\u53f7\u5bc6\u7801\uff0c\u5c1d\u8bd5\u5411mysql\u5efa\u7acb\u4e00\u6761TCP\u957f\u94fe\u63a5\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">mysql\u7684<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u8fde\u63a5\u7ba1\u7406\u6a21\u5757<\/strong>\u4f1a\u5bf9\u8fd9\u6761\u8fde\u63a5\u8fdb\u884c\u7ba1\u7406\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5efa\u7acb\u8fde\u63a5\u540e\uff0c\u5ba2\u6237\u7aef\u6267\u884c\u4e00\u6761\u67e5\u8be2sql\u8bed\u53e5\u3002\u6bd4\u5982\uff1a<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\"><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">select<\/span>\u00a0*\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">user<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">where<\/span>\u00a0gender\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">and<\/span>\u00a0age\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">100<\/span>;\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5ba2\u6237\u7aef\u4f1a\u5c06sql\u8bed\u53e5\u901a\u8fc7\u7f51\u7edc\u8fde\u63a5\u7ed9mysql\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">mysql\u6536\u5230sql\u8bed\u53e5\u540e\uff0c\u4f1a\u5728<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5206\u6790\u5668<\/strong>\u4e2d\u5148\u5224\u65ad\u4e0bSQL\u8bed\u53e5\u6709\u6ca1\u6709\u8bed\u6cd5\u9519\u8bef\uff0c\u6bd4\u5982select\uff0c\u5982\u679c\u5c11\u6253\u4e00\u4e2a<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">l<\/code>\uff0c\u5199\u6210<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">slect<\/code>\uff0c\u5219\u4f1a\u62a5\u9519<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">You have an error in your SQL syntax;<\/code>\u3002\u8fd9\u4e2a\u62a5\u9519\u5bf9\u4e8e\u6211\u8fd9\u6837\u7684\u624b\u6b8b\u515a\u6765\u8bf4\u53ef\u4ee5\u8bf4\u662f\u5f88\u719f\u6089\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u63a5\u4e0b\u6765\u662f<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4f18\u5316\u5668<\/strong>\uff0c\u5728\u8fd9\u91cc\u4f1a<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u6839\u636e\u4e00\u5b9a\u7684\u89c4\u5219\u9009\u62e9\u8be5\u7528\u4ec0\u4e48\u7d22\u5f15<\/strong>\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e4b\u540e\uff0c\u624d\u662f\u901a\u8fc7<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u6267\u884c\u5668<\/strong>\u53bb\u8c03\u7528<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5b58\u50a8\u5f15\u64ce<\/strong>\u7684\u63a5\u53e3\u51fd\u6570\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-bf881f8c860ba50893f806ddf0aeea0b.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"Mysql\u67b6\u6784\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-bf881f8c860ba50893f806ddf0aeea0b.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"1.04\" data-w=\"1000\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">Mysql\u67b6\u6784<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\"><strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5b58\u50a8\u5f15\u64ce<\/strong>\u7c7b\u4f3c\u4e8e\u4e00\u4e2a\u4e2a\u7ec4\u4ef6\uff0c\u5b83\u4eec\u624d\u662fmysql\u771f\u6b63\u83b7\u53d6\u4e00\u884c\u884c\u6570\u636e\u5e76\u8fd4\u56de\u6570\u636e\u7684\u5730\u65b9\uff0c\u5b58\u50a8\u5f15\u64ce\u662f\u53ef\u4ee5\u66ff\u6362\u66f4\u6539\u7684\uff0c\u65e2\u53ef\u4ee5\u7528\u4e0d\u652f\u6301\u4e8b\u52a1\u7684MyISAM\uff0c\u4e5f\u53ef\u4ee5\u66ff\u6362\u6210\u652f\u6301\u4e8b\u52a1\u7684Innodb\u3002\u8fd9\u4e2a\u53ef\u4ee5\u5728\u5efa\u8868\u7684\u65f6\u5019\u6307\u5b9a\u3002\u6bd4\u5982<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\"><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">CREATE<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">TABLE<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">`user`<\/span>\u00a0(\r\n\u00a0\u00a0...\r\n)\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">ENGINE<\/span>=<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">InnoDB<\/span>;\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u73b0\u5728\u6700\u5e38\u7528\u7684\u662f<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">InnoDB<\/strong>\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6211\u4eec\u5c31\u91cd\u70b9\u8bf4\u8fd9\u4e2a\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">InnoDB\u4e2d\uff0c\u56e0\u4e3a\u76f4\u63a5\u64cd\u4f5c\u78c1\u76d8\u4f1a\u6bd4\u8f83\u6162\uff0c\u6240\u4ee5\u52a0\u4e86\u4e00\u5c42\u5185\u5b58\u63d0\u63d0\u901f\uff0c\u53eb<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">buffer pool<\/strong>\uff0c\u8fd9\u91cc\u9762\uff0c\u653e\u4e86\u5f88\u591a\u5185\u5b58\u9875\uff0c\u6bcf\u4e00\u987516KB\uff0c\u6709\u4e9b\u5185\u5b58\u9875\u653e\u7684\u662f\u6570\u636e\u5e93\u8868\u91cc\u770b\u5230\u7684\u90a3\u79cd\u4e00\u884c\u884c\u7684\u6570\u636e\uff0c\u6709\u4e9b\u5219\u662f\u653e\u7684\u7d22\u5f15\u4fe1\u606f\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-d9724da20b30d4ee7eb5e785f0343e77.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"bufferPool\u4e0e\u78c1\u76d8\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-d9724da20b30d4ee7eb5e785f0343e77.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.7\" data-w=\"1000\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">bufferPool\u4e0e\u78c1\u76d8<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u67e5\u8be2SQL\u5230\u4e86InnoDB\u4e2d\u3002\u4f1a\u6839\u636e\u524d\u9762\u4f18\u5316\u5668\u91cc\u8ba1\u7b97\u5f97\u5230\u7684\u7d22\u5f15\uff0c\u53bb<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u67e5\u8be2\u76f8\u5e94\u7684\u7d22\u5f15\u9875<\/strong>\uff0c\u5982\u679c\u4e0d\u5728buffer pool\u91cc\u5219\u4ece\u78c1\u76d8\u91cc\u52a0\u8f7d\u7d22\u5f15\u9875\u3002<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u518d\u901a\u8fc7\u7d22\u5f15\u9875\u52a0\u901f\u67e5\u8be2\uff0c\u5f97\u5230\u6570\u636e\u9875<\/strong>\u7684\u5177\u4f53\u4f4d\u7f6e\u3002\u5982\u679c\u8fd9\u4e9b\u6570\u636e\u9875\u4e0d\u5728buffer pool\u4e2d\uff0c\u5219\u4ece\u78c1\u76d8\u91cc\u52a0\u8f7d\u8fdb\u6765\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u8fd9\u6837\u6211\u4eec\u5c31\u5f97\u5230\u4e86\u6211\u4eec\u60f3\u8981\u7684\u4e00\u884c\u884c\u6570\u636e\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-5ccadd09d13046479db6466a7bffa03a.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"\u7d22\u5f15\u9875\u4e0e\u78c1\u76d8\u9875\u7684\u5173\u7cfb\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-5ccadd09d13046479db6466a7bffa03a.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"1\" data-w=\"800\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">\u7d22\u5f15\u9875\u4e0e\u78c1\u76d8\u9875\u7684\u5173\u7cfb<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6700\u540e\u5c06\u5f97\u5230\u7684\u6570\u636e\u7ed3\u679c\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h3 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #1565c0;\"><span style=\"font-size: inherit; line-height: inherit; display: inline-block; font-weight: normal; background: #1565c0; color: #ffffff; padding-top: 3px; padding-right: 10px; padding-left: 10px; border-top-right-radius: 3px; border-top-left-radius: 4px; margin-right: 2px;\">\u6162\u67e5\u8be2\u5206\u6790<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5982\u679c\u4e0a\u9762\u7684\u6d41\u7a0b\u6bd4\u8f83\u6162\u7684\u8bdd\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5f00\u542f<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">profiling<\/code>\u770b\u5230\u6d41\u7a0b\u6162\u5728\u54ea\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\">mysql&gt;\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">set<\/span>\u00a0profiling=<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">ON<\/span>;\r\nQuery\u00a0OK,\u00a00\u00a0rows\u00a0affected,\u00a01\u00a0warning\u00a0(0.00\u00a0sec)\r\n\r\nmysql&gt;\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">show<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">variables<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">like<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'profiling'<\/span>;\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">---------------+-------+<\/span>\r\n|\u00a0Variable_name\u00a0|\u00a0Value\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">---------------+-------+<\/span>\r\n|\u00a0profiling\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0ON\u00a0\u00a0\u00a0\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">---------------+-------+<\/span>\r\n1\u00a0row\u00a0in\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">set<\/span>\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.00<\/span>\u00a0sec)\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u7136\u540e\u6b63\u5e38\u6267\u884csql\u8bed\u53e5\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u8fd9\u4e9bSQL\u8bed\u53e5\u7684\u6267\u884c\u65f6\u95f4\u90fd\u4f1a\u88ab\u8bb0\u5f55\u4e0b\u6765\uff0c\u6b64\u65f6\u4f60\u60f3\u67e5\u770b\u6709\u54ea\u4e9b\u8bed\u53e5\u88ab\u8bb0\u5f55\u4e0b\u6765\u4e86\uff0c\u53ef\u4ee5\u6267\u884c <code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">show profiles;<\/code><\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\">mysql&gt;\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">show<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">profiles<\/span>;\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">----------+------------+---------------------------------------------------+<\/span>\r\n|\u00a0Query_ID\u00a0|\u00a0Duration\u00a0\u00a0\u00a0|\u00a0Query\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">----------+------------+---------------------------------------------------+<\/span>\r\n|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01\u00a0|\u00a00.06811025\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">select<\/span>\u00a0*\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">user<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">where<\/span>\u00a0age&gt;=<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">60<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\r\n|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">2<\/span>\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.00151375<\/span>\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">select<\/span>\u00a0*\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">user<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">where<\/span>\u00a0gender\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">2<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">and<\/span>\u00a0age\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">80<\/span>\u00a0\u00a0|\r\n|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">3<\/span>\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.00230425<\/span>\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">select<\/span>\u00a0*\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">user<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">where<\/span>\u00a0gender\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">2<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">and<\/span>\u00a0age\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">60<\/span>\u00a0\u00a0|\r\n|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">4<\/span>\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.00070400<\/span>\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">select<\/span>\u00a0*\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">user<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">where<\/span>\u00a0gender\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">2<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">and<\/span>\u00a0age\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">100<\/span>\u00a0|\r\n|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">5<\/span>\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.07797650<\/span>\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">select<\/span>\u00a0*\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">user<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">where<\/span>\u00a0age!=<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">60<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">----------+------------+---------------------------------------------------+<\/span>\r\n<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">5<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">rows<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">in<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">set<\/span>,\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">warning<\/span>\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.00<\/span>\u00a0sec)\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5173\u6ce8\u4e0b\u4e0a\u9762\u7684<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">query_id<\/code>\uff0c\u6bd4\u5982<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">select * from user where age&gt;=60<\/code>\u5bf9\u5e94\u7684query_id\u662f1\uff0c\u5982\u679c\u4f60\u60f3\u67e5\u770b\u8fd9\u6761SQL\u8bed\u53e5\u7684\u5177\u4f53\u8017\u65f6\uff0c\u90a3\u4e48\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u7684\u547d\u4ee4\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\">mysql&gt;\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">show<\/span>\u00a0profile\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">for<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">query<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1<\/span>;\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">----------------------+----------+<\/span>\r\n|\u00a0Status\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0Duration\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">----------------------+----------+<\/span>\r\n|\u00a0starting\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a00.000074\u00a0|\r\n|\u00a0checking\u00a0permissions\u00a0|\u00a00.000010\u00a0|\r\n|\u00a0Opening\u00a0tables\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a00.000034\u00a0|\r\n|\u00a0init\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a00.000032\u00a0|\r\n|\u00a0System\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">lock<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000027<\/span>\u00a0|\r\n|\u00a0optimizing\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000020<\/span>\u00a0|\r\n|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">statistics<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000058<\/span>\u00a0|\r\n|\u00a0preparing\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000018<\/span>\u00a0|\r\n|\u00a0executing\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000013<\/span>\u00a0|\r\n|\u00a0Sending\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">data<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.067701<\/span>\u00a0|\r\n|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">end<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000021<\/span>\u00a0|\r\n|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">query<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">end<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000015<\/span>\u00a0|\r\n|\u00a0closing\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">tables<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000014<\/span>\u00a0|\r\n|\u00a0freeing\u00a0items\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000047<\/span>\u00a0|\r\n|\u00a0cleaning\u00a0up\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.000027<\/span>\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">----------------------+----------+<\/span>\r\n<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">15<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">rows<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">in<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">set<\/span>,\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">warning<\/span>\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.00<\/span>\u00a0sec)\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u901a\u8fc7\u4e0a\u9762\u7684\u5404\u4e2a\u9879\uff0c\u5927\u5bb6\u5c31\u53ef\u4ee5\u770b\u5230\u5177\u4f53\u8017\u65f6\u5728\u54ea\u3002\u6bd4\u5982\u4ece\u4e0a\u9762\u53ef\u4ee5\u770b\u51faSending data\u7684\u8017\u65f6\u6700\u5927\uff0c\u8fd9\u4e2a\u662f\u6307<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u6267\u884c\u5668<\/strong>\u5f00\u59cb\u67e5\u8be2\u6570\u636e\u5e76\u5c06\u6570\u636e\u53d1\u9001\u7ed9\u5ba2\u6237\u7aef\u7684\u8017\u65f6\uff0c\u56e0\u4e3a\u6211\u7684\u8fd9\u5f20\u8868\u7b26\u5408\u6761\u4ef6\u7684\u6570\u636e\u6709<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u597d\u51e0\u4e07\u6761<\/strong>\uff0c\u6240\u4ee5\u8fd9\u5757\u8017\u65f6\u6700\u5927\uff0c\u4e5f\u7b26\u5408\u9884\u671f\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u8017\u65f6\u5927\u90e8\u5206\u65f6\u5019\u90fd\u5728<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">Sending data<\/code>\u9636\u6bb5\uff0c\u800c\u8fd9\u4e00\u9636\u6bb5\u91cc\u5982\u679c\u6162\u7684\u8bdd\uff0c\u6700\u5bb9\u6613\u60f3\u5230\u7684\u8fd8\u662f\u7d22\u5f15\u76f8\u5173\u7684\u539f\u56e0\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h3 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #1565c0;\"><span style=\"font-size: inherit; line-height: inherit; display: inline-block; font-weight: normal; background: #1565c0; color: #ffffff; padding-top: 3px; padding-right: 10px; padding-left: 10px; border-top-right-radius: 3px; border-top-left-radius: 4px; margin-right: 2px;\">\u7d22\u5f15\u76f8\u5173\u539f\u56e0<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u7d22\u5f15\u76f8\u5173\u7684\u95ee\u9898\uff0c\u4e00\u822c\u80fd\u7528explain\u547d\u4ee4\u5e2e\u52a9\u5206\u6790\u3002\u901a\u8fc7\u5b83\u80fd\u770b\u5230<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u7528\u4e86\u54ea\u4e9b\u7d22\u5f15<\/strong>\uff0c\u5927\u6982\u4f1a<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u626b\u63cf\u591a\u5c11\u884c<\/strong>\u4e4b\u7c7b\u7684\u4fe1\u606f\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">mysql\u4f1a\u5728<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4f18\u5316\u5668\u9636\u6bb5<\/strong>\u91cc\u770b\u4e0b\u9009\u62e9\u54ea\u4e2a\u7d22\u5f15\uff0c\u67e5\u8be2\u901f\u5ea6\u4f1a\u66f4\u5feb\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e00\u822c\u4e3b\u8981\u8003\u8651\u51e0\u4e2a\u56e0\u7d20\uff0c\u6bd4\u5982\uff1a<\/p>\n<ul class=\"list-paddingleft-1\" style=\"font-size: inherit; color: inherit; line-height: inherit; padding-left: 32px; list-style-type: disc;\">\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\">\u9009\u62e9\u8fd9\u4e2a\u7d22\u5f15\u5927\u6982\u8981\u626b\u63cf<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u591a\u5c11\u884c<\/strong>\uff08rows\uff09<\/li>\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\">\u4e3a\u4e86\u628a\u8fd9\u4e9b\u884c\u53d6\u51fa\u6765\uff0c\u9700\u8981\u8bfb<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u591a\u5c11\u4e2a16kb\u7684\u9875<\/strong><\/li>\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\">\u8d70\u666e\u901a\u7d22\u5f15\u9700\u8981\u56de\u8868\uff0c\u4e3b\u952e\u7d22\u5f15\u5219\u4e0d\u9700\u8981\uff0c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u56de\u8868\u6210\u672c<\/strong>\u5927\u4e0d\u5927\uff1f<\/li>\n<\/ul>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u56de\u5230show profile\u4e2d\u63d0\u5230\u7684sql\u8bed\u53e5\uff0c\u6211\u4eec\u4f7f\u7528<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">explain select * from user where age&gt;=60<\/code> \u5206\u6790\u4e00\u4e0b\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-ec125533cc9567995330667167178244.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"explain sql\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-ec125533cc9567995330667167178244.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.14907407407407408\" data-w=\"1080\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">explain sql<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e0a\u9762\u7684\u8fd9\u6761\u8bed\u53e5\uff0c\u4f7f\u7528\u7684<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">type<\/code>\u4e3aALL\uff0c\u610f\u5473\u7740\u662f<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5168\u8868\u626b\u63cf<\/strong>\uff0c<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">possible_keys<\/code>\u662f\u6307<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u53ef\u80fd\u7528\u5f97\u5230\u7684\u7d22\u5f15<\/strong>\uff0c\u8fd9\u91cc\u53ef\u80fd\u4f7f\u7528\u5230\u7684\u7d22\u5f15\u662f\u4e3aage\u5efa\u7684\u666e\u901a\u7d22\u5f15\uff0c\u4f46\u5b9e\u9645\u4e0a\u6570\u636e\u5e93\u4f7f\u7528\u7684\u7d22\u5f15\u662f\u5728<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">key<\/code>\u90a3\u4e00\u5217\uff0c\u662f<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">NULL<\/code>\u3002\u4e5f\u5c31\u662f\u8bf4<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u8fd9\u53e5sql\u4e0d\u8d70\u7d22\u5f15\uff0c\u5168\u8868\u626b\u63cf<\/strong>\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u8fd9\u4e2a\u662f\u56e0\u4e3a\u6570\u636e\u8868\u91cc\uff0c\u7b26\u5408\u6761\u4ef6\u7684\u6570\u636e\u884c\u6570\uff08<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">rows<\/code>\uff09\u592a\u591a\uff0c\u5982\u679c\u4f7f\u7528age\u7d22\u5f15\uff0c\u90a3\u4e48\u9700\u8981\u5c06\u5b83\u4eec\u4eceage\u7d22\u5f15\u4e2d\u8bfb\u51fa\u6765\uff0c\u5e76\u4e14age\u7d22\u5f15\u662f<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u666e\u901a\u7d22\u5f15<\/strong>\uff0c\u8fd8\u9700\u8981<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u56de\u8868<\/strong>\u627e\u5230\u5bf9\u5e94\u7684<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4e3b\u952e<\/strong>\u624d\u80fd\u627e\u5230\u5bf9\u5e94\u7684<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u6570\u636e\u9875<\/strong>\u3002\u7b97\u4e0b\u6765\u8fd8\u4e0d\u5982\u76f4\u63a5\u8d70\u4e3b\u952e\u5212\u7b97\u3002\u4e8e\u662f\u6700\u7ec8\u9009\u62e9\u4e86\u5168\u8868\u626b\u63cf\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5f53\u7136\u4e0a\u9762\u53ea\u662f\u4e3e\u4e86\u4e2a\u4f8b\u5b50\uff0c\u5b9e\u9645\u4e0a\uff0cmysql\u6267\u884csql\u65f6\uff0c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4e0d\u7528\u7d22\u5f15\u6216\u8005\u7528\u7684\u7d22\u5f15\u4e0d\u7b26\u5408\u6211\u4eec\u9884\u671f<\/strong>\u8fd9\u4ef6\u4e8b\u7ecf\u5e38\u53d1\u751f\uff0c\u7d22\u5f15\u5931\u6548\u7684\u573a\u666f\u6709\u5f88\u591a\uff0c\u6bd4\u5982\u7528\u4e86<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4e0d\u7b49\u53f7\uff0c\u9690\u5f0f\u8f6c\u6362<\/strong>\u7b49\uff0c\u8fd9\u4e2a\u76f8\u4fe1\u5927\u5bb6\u80cc\u516b\u80a1\u6587\u7684\u65f6\u5019\u4e5f\u80cc\u8fc7\u4e0d\u5c11\u4e86\uff0c\u6211\u4e5f\u4e0d\u518d\u8d58\u8ff0\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u804a\u4e24\u4e2a\u751f\u4ea7\u4e2d\u5bb9\u6613\u9047\u5230\u7684\u95ee\u9898\u5427\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h4 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.2em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u7d22\u5f15\u4e0d\u7b26\u5408\u9884\u671f<\/span><\/h4>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5b9e\u9645\u5f00\u53d1\u4e2d\u6709\u4e9b\u60c5\u51b5\u6bd4\u8f83\u7279\u6b8a\uff0c\u6bd4\u5982\u6709\u4e9b\u6570\u636e\u5e93\u8868\u4e00\u5f00\u59cb\u6570\u636e\u91cf\u5c0f\uff0c\u7d22\u5f15\u5c11\uff0c\u6267\u884csql\u65f6\uff0c\u786e\u5b9e\u4f7f\u7528\u4e86\u7b26\u5408\u4f60\u9884\u671f\u7684\u7d22\u5f15\u3002\u4f46\u968f\u65f6\u65f6\u95f4\u8fb9\u957f\uff0c\u5f00\u53d1\u7684\u4eba\u53d8\u591a\u4e86\uff0c\u6570\u636e\u91cf\u4e5f\u53d8\u5927\u4e86\uff0c\u751a\u81f3\u8fd8\u53ef\u80fd\u4f1a\u52a0\u5165\u4e00\u4e9b\u5176\u4ed6\u91cd\u590d\u591a\u4f59\u7684\u7d22\u5f15\uff0c\u5c31\u6709\u53ef\u80fd\u51fa\u73b0\u7528\u7740\u7528\u7740\uff0c\u7528\u5230\u4e86\u4e0d\u7b26\u5408\u4f60\u9884\u671f\u7684\u5176\u4ed6\u7d22\u5f15\u4e86\u3002\u4ece\u800c\u5bfc\u81f4\u67e5\u8be2\u7a81\u7136\u53d8\u6162\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u8fd9\u79cd\u95ee\u9898\uff0c\u4e5f\u597d\u89e3\u51b3\uff0c\u53ef\u4ee5\u901a\u8fc7<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">force index<\/code><strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u6307\u5b9a\u7d22\u5f15<\/strong>\u3002\u6bd4\u5982<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-c6d26bd8e00be3f6bf78bc163ecb02f6.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"force index\u6307\u5b9a\u7d22\u5f15\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-c6d26bd8e00be3f6bf78bc163ecb02f6.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.14074074074074075\" data-w=\"1080\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">force index\u6307\u5b9a\u7d22\u5f15<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u901a\u8fc7<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">explain<\/code>\u53ef\u4ee5\u770b\u51fa\uff0c\u52a0\u4e86force index\u4e4b\u540e\uff0csql\u5c31\u9009\u7528\u4e86idx_age\u8fd9\u4e2a\u7d22\u5f15\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h4 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.2em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u8d70\u4e86\u7d22\u5f15\u8fd8\u662f\u5f88\u6162<\/span><\/h4>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6709\u4e9bsql\uff0c\u7528<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">explain<\/code>\u547d\u4ee4\u770b\uff0c\u660e\u660e\u662f\u8d70\u7d22\u5f15\u7684\uff0c\u4f46\u8fd8\u662f\u5f88\u6162\u3002\u4e00\u822c\u662f\u4e24\u79cd\u60c5\u51b5\uff1a<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u7b2c\u4e00\u79cd\u662f\u7d22\u5f15\u533a\u5206\u5ea6\u592a\u4f4e\uff0c\u6bd4\u5982\u7f51\u9875\u5168\u8def\u5f84\u7684url\u94fe\u63a5\uff0c\u8fd9\u62ff\u6765\u505a\u7d22\u5f15\uff0c\u4e00\u773c\u770b\u8fc7\u53bb\u5168\u90fd\u662f\u540c\u4e00\u4e2a\u57df\u540d\uff0c\u5982\u679c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u524d\u7f00\u7d22\u5f15<\/strong>\u7684\u957f\u5ea6\u5efa\u5f97\u4e0d\u591f\u957f\uff0c\u90a3\u8fd9\u8d70\u7d22\u5f15\u8ddf\u8d70<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5168\u8868\u626b\u63cf<\/strong>\u4f3c\u7684\uff0c\u6b63\u786e\u59ff\u52bf\u662f\u5c3d\u91cf\u8ba9\u7d22\u5f15\u7684<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u533a\u5206\u5ea6<\/strong>\u66f4\u9ad8\uff0c\u6bd4\u5982\u57df\u540d\u53bb\u6389\uff0c\u53ea\u62ff\u540e\u9762URI\u90e8\u5206\u53bb\u505a\u7d22\u5f15\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-3c0e7035244281a1f4260ca1ba23f90d.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"\u7d22\u5f15\u524d\u7f00\u533a\u5206\u5ea6\u592a\u4f4e\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-3c0e7035244281a1f4260ca1ba23f90d.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.5\" data-w=\"800\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">\u7d22\u5f15\u524d\u7f00\u533a\u5206\u5ea6\u592a\u4f4e<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u7b2c\u4e8c\u79cd\u662f\u7d22\u5f15\u4e2d\u5339\u914d\u5230\u7684\u6570\u636e\u592a\u5927\uff0c\u8fd9\u65f6\u5019\u9700\u8981\u5173\u6ce8\u7684\u662fexplain\u91cc\u7684<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">rows<\/strong>\u5b57\u6bb5\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5b83\u662f\u7528\u4e8e<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u9884\u4f30<\/strong>\u8fd9\u4e2a\u67e5\u8be2\u8bed\u53e5\u9700\u8981\u67e5\u7684\u884c\u6570\u7684\uff0c\u5b83\u4e0d\u4e00\u5b9a\u5b8c\u5168\u51c6\u786e\uff0c\u4f46\u53ef\u4ee5\u4f53\u73b0\u4e2a\u5927\u6982\u91cf\u7ea7\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5f53\u5b83\u5f88\u5927\u65f6\uff0c\u4e00\u822c\u5e38\u89c1\u7684\u662f\u4e0b\u9762\u51e0\u79cd\u60c5\u51b5\u3002<\/p>\n<ul class=\"list-paddingleft-1\" style=\"font-size: inherit; color: inherit; line-height: inherit; padding-left: 32px; list-style-type: disc;\">\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\">\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5982\u679c\u8fd9\u4e2a\u5b57\u6bb5\u5177\u6709<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u552f\u4e00<\/strong>\u7684\u5c5e\u6027\uff0c\u6bd4\u5982\u7535\u8bdd\u53f7\u7801\u7b49\uff0c\u4e00\u822c\u662f\u4e0d\u5e94\u8be5\u6709\u5927\u91cf\u91cd\u590d\u7684\uff0c\u90a3\u53ef\u80fd\u662f\u4f60\u4ee3\u7801\u903b\u8f91\u51fa\u73b0\u4e86<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5927\u91cf\u91cd\u590d\u63d2\u5165<\/strong>\u7684\u64cd\u4f5c\uff0c\u4f60\u9700\u8981\u68c0\u67e5\u4e0b\u4ee3\u7801\u903b\u8f91\uff0c\u6216\u8005\u9700\u8981\u52a0\u4e2a<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u552f\u4e00\u7d22\u5f15<\/strong>\u9650\u5236\u4e0b\u3002<\/p>\n<\/li>\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\">\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5982\u679c\u8fd9\u4e2a\u5b57\u6bb5\u4e0b\u7684\u6570\u636e\u5c31\u662f\u4f1a\u5f88\u5927\uff0c\u662f\u5426\u9700\u8981\u5168\u90e8\u62ff\uff1f\u5982\u679c\u4e0d\u9700\u8981\uff0c\u52a0\u4e2a<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">limit<\/code>\u9650\u5236\u4e0b\u3002\u5982\u679c\u786e\u5b9e\u8981\u62ff\u5168\u90e8\uff0c\u90a3\u4e5f\u4e0d\u80fd\u4e00\u6b21\u6027\u5168\u62ff\uff0c\u4eca\u5929\u4f60\u6570\u636e\u91cf\u5c0f\uff0c\u53ef\u80fd\u4e00\u6b21\u53d6\u4e00\u4e24\u4e07\u90fd\u6ca1\u5565\u538b\u529b\uff0c\u4e07\u4e00\u54ea\u5929\u6da8\u5230\u4e86\u5341\u4e07\u7ea7\u522b\uff0c\u90a3\u4e00\u6b21\u6027\u53d6\u5c31\u6709\u70b9\u5403\u4e0d\u6d88\u4e86\u3002\u4f60\u53ef\u80fd\u9700\u8981<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5206\u6279\u6b21\u53d6<\/strong>\uff0c\u5177\u4f53\u64cd\u4f5c\u662f\u5148\u7528<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">order by id<\/code>\u6392\u5e8f\u4e00\u4e0b\uff0c\u62ff\u5230\u4e00\u6279\u6570\u636e\u540e\u53d6<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">\u6700\u5927id<\/code>\u4f5c\u4e3a\u4e0b\u6b21\u53d6\u6570\u636e\u7684\u8d77\u59cb\u4f4d\u7f6e\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h3 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #1565c0;\"><span style=\"font-size: inherit; line-height: inherit; display: inline-block; font-weight: normal; background: #1565c0; color: #ffffff; padding-top: 3px; padding-right: 10px; padding-left: 10px; border-top-right-radius: 3px; border-top-left-radius: 4px; margin-right: 2px;\">\u8fde\u63a5\u6570\u8fc7\u5c0f<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u7d22\u5f15\u76f8\u5173\u7684\u539f\u56e0\u6211\u4eec\u804a\u5b8c\u4e86\uff0c\u6211\u4eec\u6765\u804a\u804a\uff0c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u9664\u4e86\u7d22\u5f15\u4e4b\u5916\uff0c\u8fd8\u6709\u54ea\u4e9b\u56e0\u7d20\u4f1a\u9650\u5236\u6211\u4eec\u7684\u67e5\u8be2\u901f\u5ea6\u7684\u3002<\/strong><\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0cmysql\u7684server\u5c42\u91cc\u6709\u4e2a<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u8fde\u63a5\u7ba1\u7406<\/strong>\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u7ba1\u7406\u5ba2\u6237\u7aef\u548cmysql\u4e4b\u95f4\u7684\u957f\u8fde\u63a5\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u5ba2\u6237\u7aef\u4e0eserver\u5c42\u5982\u679c\u53ea\u6709<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4e00\u6761<\/strong>\u8fde\u63a5\uff0c\u90a3\u4e48\u5728\u6267\u884csql\u67e5\u8be2\u4e4b\u540e\uff0c\u53ea\u80fd\u963b\u585e\u7b49\u5f85\u7ed3\u679c\u8fd4\u56de\uff0c\u5982\u679c\u6709\u5927\u91cf\u67e5\u8be2\u540c\u65f6\u5e76\u53d1\u8bf7\u6c42\uff0c\u90a3\u4e48<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u540e\u9762\u7684\u8bf7\u6c42\u90fd\u9700\u8981\u7b49\u5f85\u524d\u9762\u7684\u8bf7\u6c42\u6267\u884c\u5b8c\u6210<\/strong>\u540e\uff0c\u624d\u80fd\u5f00\u59cb\u6267\u884c\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-a25e6538e79bee90cca982ffd69a1044.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"\u8fde\u63a5\u8fc7\u5c11\u4f1a\u5bfc\u81f4sql\u963b\u585e\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-a25e6538e79bee90cca982ffd69a1044.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.375\" data-w=\"1080\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">\u8fde\u63a5\u8fc7\u5c11\u4f1a\u5bfc\u81f4sql\u963b\u585e<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u56e0\u6b64\u5f88\u591a\u65f6\u5019\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u6bd4\u5982go\u6216java\u8fd9\u4e9b\uff0c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4f1a\u6253\u5370\u51fasql\u6267\u884c\u4e86\u51e0\u5206\u949f\u7684\u65e5\u5fd7\uff0c\u4f46\u5b9e\u9645\u4e0a\u4f60\u628a\u8fd9\u6761\u8bed\u53e5\u5355\u72ec\u62ce\u51fa\u6765\u6267\u884c\uff0c\u5374\u53c8\u662f\u6beb\u79d2\u7ea7\u522b\u7684\u3002<\/strong>\u8fd9\u90fd\u662f\u56e0\u4e3a\u8fd9\u4e9bsql\u8bed\u53e5\u5728<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u7b49\u5f85<\/strong>\u524d\u9762\u7684sql\u6267\u884c\u5b8c\u6210\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u600e\u4e48\u89e3\u51b3\u5462\uff1f<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5982\u679c\u6211\u4eec\u80fd<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u591a\u5efa\u51e0\u6761\u8fde\u63a5<\/strong>\uff0c\u90a3\u4e48\u8bf7\u6c42\u5c31\u53ef\u4ee5\u5e76\u53d1\u6267\u884c\uff0c\u540e\u9762\u7684\u8fde\u63a5\u5c31\u4e0d\u7528\u7b49\u90a3\u4e48\u4e45\u4e86\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-5b96f3ace202caba642b2fbd9be50e80.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"\u589e\u52a0\u8fde\u63a5\u53ef\u4ee5\u52a0\u5feb\u6267\u884csql\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-5b96f3ace202caba642b2fbd9be50e80.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.43796296296296294\" data-w=\"1080\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">\u589e\u52a0\u8fde\u63a5\u53ef\u4ee5\u52a0\u5feb\u6267\u884csql<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u800c\u8fde\u63a5\u6570\u8fc7\u5c0f\u7684\u95ee\u9898\uff0c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u53d7\u6570\u636e\u5e93\u548c\u5ba2\u6237\u7aef\u4e24\u4fa7\u540c\u65f6\u9650\u5236<\/strong>\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h4 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.2em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u6570\u636e\u5e93\u8fde\u63a5\u6570\u8fc7\u5c0f<\/span><\/h4>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">Mysql\u7684\u6700\u5927\u8fde\u63a5\u6570\u9ed8\u8ba4\u662f<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">100<\/code>, \u6700\u5927\u53ef\u4ee5\u8fbe\u5230<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">16384<\/code>\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6emysql\u7684<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">max_connections<\/code>\u53c2\u6570\uff0c\u66f4\u6539\u6570\u636e\u5e93\u7684\u6700\u5927\u8fde\u63a5\u6570\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\">mysql&gt;\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">set<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">global<\/span>\u00a0max_connections=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">500<\/span>;\r\nQuery\u00a0OK,\u00a00\u00a0rows\u00a0affected\u00a0(0.00\u00a0sec)\r\n\r\nmysql&gt;\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">show<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">variables<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">like<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'max_connections'<\/span>;\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">-----------------+-------+<\/span>\r\n|\u00a0Variable_name\u00a0\u00a0\u00a0|\u00a0Value\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">-----------------+-------+<\/span>\r\n|\u00a0max_connections\u00a0|\u00a0500\u00a0\u00a0\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">-----------------+-------+<\/span>\r\n1\u00a0row\u00a0in\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">set<\/span>\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.00<\/span>\u00a0sec)\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e0a\u9762\u7684\u64cd\u4f5c\uff0c\u5c31\u628a\u6700\u5927\u8fde\u63a5\u6570\u6539\u6210\u4e86500\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h4 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.2em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u5e94\u7528\u4fa7\u8fde\u63a5\u6570\u8fc7\u5c0f<\/span><\/h4>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6570\u636e\u5e93\u8fde\u63a5\u5927\u5c0f\u662f\u8c03\u6574\u8fc7\u4e86\uff0c\u4f46\u8c8c\u4f3c\u95ee\u9898\u8fd8\u662f\u6ca1\u6709\u53d8\u5316\uff1f\u8fd8\u662f\u6709\u5f88\u591asql\u6267\u884c\u8fbe\u5230\u4e86\u51e0\u5206\u949f\uff0c\u751a\u81f3\u8d85\u65f6\uff1f<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u90a3\u6709\u53ef\u80fd\u662f\u56e0\u4e3a\u4f60\u5e94\u7528\u4fa7\uff08go\uff0cjava\u5199\u7684\u5e94\u7528\uff0c\u4e5f\u5c31\u662fmysql\u7684\u5ba2\u6237\u7aef\uff09\u7684\u8fde\u63a5\u6570\u4e5f\u8fc7\u5c0f\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5e94\u7528\u4fa7\u4e0emysql\u5e95\u5c42\u7684\u8fde\u63a5\uff0c\u662f<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u57fa\u4e8eTCP\u534f\u8bae\u7684\u957f\u94fe\u63a5<\/strong>\uff0c\u800cTCP\u534f\u8bae\uff0c\u9700\u8981\u7ecf\u8fc7<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4e09\u6b21\u63e1\u624b\u548c\u56db\u6b21\u6325\u624b<\/strong>\u6765\u5b9e\u73b0\u5efa\u8fde\u548c\u91ca\u653e\u3002\u5982\u679c\u6211\u6bcf\u6b21\u6267\u884csql\u90fd\u91cd\u65b0\u5efa\u7acb\u4e00\u4e2a\u65b0\u7684\u8fde\u63a5\u7684\u8bdd\uff0c\u90a3\u5c31\u8981\u4e0d\u65ad\u63e1\u624b\u548c\u6325\u624b\uff0c\u8fd9\u5f88<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u8017\u65f6<\/strong>\u3002\u6240\u4ee5\u4e00\u822c\u4f1a\u5efa\u7acb\u4e00\u4e2a<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u957f\u8fde\u63a5\u6c60<\/strong>\uff0c\u8fde\u63a5\u7528\u5b8c\u4e4b\u540e\uff0c\u585e\u5230\u8fde\u63a5\u6c60\u91cc\uff0c\u4e0b\u6b21\u8981\u6267\u884csql\u7684\u65f6\u5019\uff0c\u518d\u4ece\u91cc\u9762\u635e\u4e00\u6761\u8fde\u63a5\u51fa\u6765\u7528\uff0c\u975e\u5e38\u73af\u4fdd\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-0e08f6c83c6a0a40aeeb5876e712a0a6.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"\u8fde\u63a5\u6c60\u539f\u7406\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-0e08f6c83c6a0a40aeeb5876e712a0a6.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.375\" data-w=\"1080\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">\u8fde\u63a5\u6c60\u539f\u7406<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6211\u4eec\u4e00\u822c\u5199\u4ee3\u7801\u7684\u65f6\u5019\uff0c\u90fd\u4f1a\u901a\u8fc7\u7b2c\u4e09\u65b9\u7684<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">orm\u5e93<\/strong>\u6765\u5bf9\u6570\u636e\u5e93\u8fdb\u884c\u64cd\u4f5c\uff0c\u800c\u6210\u719f\u7684orm\u5e93\uff0c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u767e\u5206\u4e4b\u4e00\u5343\u4e07\u90fd\u4f1a\u6709\u4e2a\u8fde\u63a5\u6c60\u3002<\/strong><\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u800c\u8fd9\u4e2a\u8fde\u63a5\u6c60\uff0c\u4e00\u822c\u4f1a\u6709\u4e2a\u5927\u5c0f\u3002\u8fd9\u4e2a\u5927\u5c0f\u5c31\u63a7\u5236\u4e86\u4f60\u7684\u8fde\u63a5\u6570\u6700\u5927\u503c\uff0c\u5982\u679c\u8bf4\u4f60\u7684\u8fde\u63a5\u6c60\u592a\u5c0f\uff0c\u90fd\u8fd8\u6ca1\u6709\u6570\u636e\u5e93\u7684\u5927\uff0c\u90a3\u8c03\u4e86\u6570\u636e\u5e93\u7684\u6700\u5927\u8fde\u63a5\u6570\u4e5f\u6ca1\u5565\u4f5c\u7528\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u7ffb\u4e0b\u4f60\u4f7f\u7528\u7684orm\u5e93\u7684\u6587\u6863\uff0c\u770b\u4e0b\u600e\u4e48\u8bbe\u7f6e\u8fd9\u4e2a\u8fde\u63a5\u6c60\u7684\u5927\u5c0f\uff0c\u5c31\u51e0\u884c\u4ee3\u7801\u7684\u4e8b\u60c5\uff0c\u6539\u6539\u5c31\u597d\u3002\u6bd4\u5982go\u8bed\u8a00\u91cc\u7684<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">gorm<\/code>\u91cc\u662f\u8fd9\u4e48\u8bbe\u7f6e\u7684<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\"><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\"><span style=\"font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;\">func<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #a5da2d; overflow-wrap: inherit !important; word-break: inherit !important;\">Init<\/span><span style=\"font-size: inherit; line-height: inherit; color: #ff9823; overflow-wrap: inherit !important; word-break: inherit !important;\">()<\/span><\/span>\u00a0{\r\n\u00a0\u00a0db,\u00a0err\u00a0:=\u00a0gorm.Open(mysql.Open(conn),\u00a0config)\r\n\u00a0\u00a0\u00a0\u00a0sqlDB,\u00a0err\u00a0:=\u00a0db.DB()\r\n\u00a0\u00a0\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">\/\/\u00a0SetMaxIdleConns\u00a0\u8bbe\u7f6e\u7a7a\u95f2\u8fde\u63a5\u6c60\u4e2d\u8fde\u63a5\u7684\u6700\u5927\u6570\u91cf<\/span>\r\n\u00a0\u00a0\u00a0\u00a0sqlDB.SetMaxIdleConns(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">200<\/span>)\r\n\u00a0\u00a0\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">\/\/\u00a0SetMaxOpenConns\u00a0\u8bbe\u7f6e\u6253\u5f00\u6570\u636e\u5e93\u8fde\u63a5\u7684\u6700\u5927\u6570\u91cf<\/span>\r\n\u00a0\u00a0\u00a0\u00a0sqlDB.SetMaxOpenConns(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1000<\/span>)\r\n}\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h3 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #1565c0;\"><span style=\"font-size: inherit; line-height: inherit; display: inline-block; font-weight: normal; background: #1565c0; color: #ffffff; padding-top: 3px; padding-right: 10px; padding-left: 10px; border-top-right-radius: 3px; border-top-left-radius: 4px; margin-right: 2px;\">buffer pool\u592a\u5c0f<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u8fde\u63a5\u6570\u662f\u4e0a\u53bb\u4e86\uff0c\u901f\u5ea6\u4e5f\u63d0\u5347\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u66fe\u7ecf\u9047\u5230\u8fc7\u9762\u8bd5\u5b98\u4f1a\u8ffd\u95ee\uff0c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u6709\u6ca1\u6709\u5176\u4ed6\u529e\u6cd5\u53ef\u4ee5\u8ba9\u901f\u5ea6\u66f4\u5feb\u5462\uff1f<\/strong><\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u90a3\u5fc5\u987b\u8981\u7709\u5934\u7d27\u9501\uff0c\u5047\u88c5\u601d\u8003\uff0c\u7136\u540e\u8bf4\uff1a<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u6709\u7684<\/strong>\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6211\u4eec\u5728\u524d\u9762\u7684\u6570\u636e\u5e93\u67e5\u8be2\u6d41\u7a0b\u91cc\uff0c\u63d0\u5230\u4e86\u8fdb\u4e86innodb\u4e4b\u540e\uff0c\u4f1a\u6709\u4e00\u5c42\u5185\u5b58buffer pool\uff0c\u7528\u4e8e\u5c06\u78c1\u76d8\u6570\u636e\u9875\u52a0\u8f7d\u5230\u5185\u5b58\u9875\u4e2d\uff0c\u53ea\u8981\u67e5\u8be2\u5230buffer pool\u91cc\u6709\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u8fd4\u56de\uff0c\u5426\u5219\u5c31\u8981\u8d70\u78c1\u76d8IO\uff0c\u90a3\u5c31\u6162\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e5f\u5c31\u662f\u8bf4\uff0c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5982\u679c\u6211\u7684buffer pool \u8d8a\u5927\uff0c\u90a3\u6211\u4eec\u80fd\u653e\u7684\u6570\u636e\u9875\u5c31\u8d8a\u591a\uff0c\u76f8\u5e94\u7684\uff0csql\u67e5\u8be2\u65f6\u5c31\u66f4\u53ef\u80fd\u547d\u4e2dbuffer pool\uff0c\u90a3\u67e5\u8be2\u901f\u5ea6\u81ea\u7136\u5c31\u66f4\u5feb\u4e86\u3002<\/strong><\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u547d\u4ee4\u67e5\u8be2\u5230buffer pool\u7684\u5927\u5c0f\uff0c\u5355\u4f4d\u662f<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">Byte<\/code>\u3002<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\">mysql&gt;\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">show<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">global<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">variables<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">like<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'innodb_buffer_pool_size'<\/span>;\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">-------------------------+-----------+<\/span>\r\n|\u00a0Variable_name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0Value\u00a0\u00a0\u00a0\u00a0\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">-------------------------+-----------+<\/span>\r\n|\u00a0innodb_buffer_pool_size\u00a0|\u00a0134217728\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">-------------------------+-----------+<\/span>\r\n1\u00a0row\u00a0in\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">set<\/span>\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.01<\/span>\u00a0sec)\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e5f\u5c31\u662f<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">128Mb<\/code>\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5982\u679c\u60f3\u8981\u8c03\u5927\u4e00\u70b9\u3002\u53ef\u4ee5\u6267\u884c<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\">mysql&gt;\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">set<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">global<\/span>\u00a0innodb_buffer_pool_size\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">536870912<\/span>;\r\nQuery\u00a0OK,\u00a00\u00a0rows\u00a0affected\u00a0(0.01\u00a0sec)\r\n\r\nmysql&gt;\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">show<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">global<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">variables<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">like<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">'innodb_buffer_pool_size'<\/span>;\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">-------------------------+-----------+<\/span>\r\n|\u00a0Variable_name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0Value\u00a0\u00a0\u00a0\u00a0\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">-------------------------+-----------+<\/span>\r\n|\u00a0innodb_buffer_pool_size\u00a0|\u00a0536870912\u00a0|\r\n+<span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">-------------------------+-----------+<\/span>\r\n1\u00a0row\u00a0in\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">set<\/span>\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0.01<\/span>\u00a0sec)\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u8fd9\u6837\u5c31\u628abuffer pool\u589e\u5927\u5230512Mb\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4f46\u662f\u5427\uff0c\u5982\u679cbuffer pool\u5927\u5c0f\u6b63\u5e38\uff0c\u53ea\u662f<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u522b\u7684\u539f\u56e0<\/strong>\u5bfc\u81f4\u7684\u67e5\u8be2\u53d8\u6162\uff0c\u90a3\u6539buffer pool\u6beb\u65e0\u610f\u4e49\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4f46\u95ee\u9898\u53c8\u6765\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h4 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.2em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u600e\u4e48\u77e5\u9053buffer pool\u662f\u4e0d\u662f\u592a\u5c0f\u4e86\uff1f<\/span><\/h4>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u8fd9\u4e2a\u6211\u4eec\u53ef\u4ee5\u770b<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">buffer pool\u7684\u7f13\u5b58\u547d\u4e2d\u7387<\/strong>\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-e626d8233136ca9fe1ca9931ab935de4.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"\u67e5\u770bbuffer pool\u547d\u4e2d\u7387\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-e626d8233136ca9fe1ca9931ab935de4.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.5694444444444444\" data-w=\"1080\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">\u67e5\u770bbuffer pool\u547d\u4e2d\u7387<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u901a\u8fc7 <code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">show status like 'Innodb_buffer_pool_%';<\/code>\u53ef\u4ee5\u770b\u5230\u8ddfbuffer pool\u6709\u5173\u7684\u4e00\u4e9b\u4fe1\u606f\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\"><code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">Innodb_buffer_pool_read_requests<\/code>\u8868\u793a\u8bfb\u8bf7\u6c42\u7684\u6b21\u6570\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\"><code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">Innodb_buffer_pool_reads<\/code> \u8868\u793a\u4ece\u7269\u7406\u78c1\u76d8\u4e2d\u8bfb\u53d6\u6570\u636e\u7684\u8bf7\u6c42\u6b21\u6570\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6240\u4ee5buffer pool\u7684\u547d\u4e2d\u7387\u5c31\u53ef\u4ee5\u8fd9\u6837\u5f97\u5230\uff1a<\/p>\n<pre style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0px;\"><code style=\"margin-right: 2px; margin-left: 2px; line-height: 18px; font-size: 14px; word-spacing: 0px; letter-spacing: 0px; border-radius: 10px; color: #a9b7c6; background: #282b2e; padding: 0.5em; overflow-wrap: normal !important; overflow: auto !important; display: -webkit-box !important;\">buffer\u00a0pool\u00a0\u547d\u4e2d\u7387\u00a0=\u00a01\u00a0-\u00a0(Innodb_buffer_pool_reads\/Innodb_buffer_pool_read_requests)\u00a0*\u00a0100%\r\n<\/code><\/pre>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6bd4\u5982\u6211\u4e0a\u9762\u622a\u56fe\u91cc\u7684\u5c31\u662f\uff0c1 &#8211; (405\/2278354) = 99.98%\u3002\u53ef\u4ee5\u8bf4\u547d\u4e2d\u7387\u975e\u5e38\u9ad8\u4e86\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e00\u822c\u60c5\u51b5\u4e0b<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">buffer pool\u547d\u4e2d\u7387<\/strong>\u90fd\u5728<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">99%<\/code>\u4ee5\u4e0a\uff0c\u5982\u679c\u4f4e\u4e8e\u8fd9\u4e2a\u503c\uff0c\u624d\u9700\u8981\u8003\u8651\u52a0\u5927innodb buffer pool\u7684\u5927\u5c0f\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u5f53\u7136\uff0c\u8fd8\u53ef\u4ee5\u628a\u8fd9\u4e2a\u547d\u4e2d\u7387\u505a\u5230<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u76d1\u63a7<\/strong>\u91cc\uff0c\u8fd9\u6837\u534a\u591csql\u53d8\u6162\u4e86\uff0c\u65e9\u4e0a\u4e0a\u73ed\u8fd8\u80fd\u5b9a\u4f4d\u5230\u539f\u56e0\uff0c\u5c31\u5f88\u8212\u670d\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h3 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #1565c0;\"><span style=\"font-size: inherit; line-height: inherit; display: inline-block; font-weight: normal; background: #1565c0; color: #ffffff; padding-top: 3px; padding-right: 10px; padding-left: 10px; border-top-right-radius: 3px; border-top-left-radius: 4px; margin-right: 2px;\">\u8fd8\u6709\u54ea\u4e9b\u9a9a\u64cd\u4f5c\uff1f<\/span><\/h3>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u524d\u9762\u63d0\u5230\u7684\u662f\u5728<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5b58\u50a8\u5f15\u64ce\u5c42<\/strong>\u91cc\u52a0\u5165\u4e86buffer pool\u7528\u4e8e\u7f13\u5b58\u5185\u5b58\u9875\uff0c\u8fd9\u6837\u53ef\u4ee5\u52a0\u901f\u67e5\u8be2\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u90a3\u540c\u6837\u7684\u9053\u7406\uff0c<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">server\u5c42<\/strong>\u4e5f\u53ef\u4ee5\u52a0\u4e2a\u7f13\u5b58\uff0c\u76f4\u63a5\u5c06\u7b2c\u4e00\u6b21\u67e5\u8be2\u7684\u7ed3\u679c\u7f13\u5b58\u4e0b\u6765\uff0c\u8fd9\u6837<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4e0b\u6b21<\/strong>\u67e5\u8be2\u5c31\u80fd\u7acb\u523b\u8fd4\u56de\uff0c\u542c\u7740\u633a\u7f8e\u7684\u3002<\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u6309\u9053\u7406\uff0c\u5982\u679c\u547d\u4e2d\u7f13\u5b58\u7684\u8bdd\uff0c\u786e\u5b9e\u662f\u80fd\u4e3a\u67e5\u8be2\u52a0\u901f\u7684\u3002\u4f46\u8fd9\u4e2a\u529f\u80fd\u9650\u5236\u5f88\u5927\uff0c\u5176\u4e2d\u6700\u5927\u7684\u95ee\u9898\u662f\u53ea\u8981\u6570\u636e\u5e93\u8868\u88ab\u66f4\u65b0\u8fc7\uff0c\u8868\u91cc\u9762\u7684<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u6240\u6709\u7f13\u5b58\u90fd\u4f1a\u5931\u6548<\/strong>\uff0c\u6570\u636e\u8868\u9891\u7e41\u7684\u66f4\u65b0\uff0c\u5c31\u4f1a\u5e26\u6765\u9891\u7e41\u7684\u7f13\u5b58\u5931\u6548\u3002\u6240\u4ee5\u8fd9\u4e2a\u529f\u80fd\u53ea\u9002\u5408\u7528\u4e8e\u90a3\u4e9b<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u4e0d\u600e\u4e48\u66f4\u65b0\u7684\u6570\u636e\u8868\u3002<\/strong><\/p>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\u53e6\u5916\uff0c\u8fd9\u4e2a\u529f\u80fd\u5728<code style=\"font-size: inherit; line-height: inherit; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #ff5252; background: #f8f8f8;\">8.0\u7248\u672c<\/code>\u4e4b\u540e\uff0c\u5c31\u88ab<strong style=\"font-size: inherit; line-height: inherit; font-weight: bold; color: #2962ff;\">\u5e72\u6389<\/strong>\u4e86\u3002\u6240\u4ee5\u8fd9\u529f\u80fd\u7528\u6765\u804a\u804a\u5929\u53ef\u4ee5\uff0c\u6ca1\u5fc5\u8981\u771f\u7684\u5728\u751f\u4ea7\u4e2d\u4f7f\u7528\u554a\u3002<\/p>\n<figure style=\"font-size: inherit; color: inherit; line-height: inherit;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-d88f9f87eeca0cff9d3624729f89be9e.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"font-size: inherit; color: inherit; line-height: inherit; display: block; margin-right: auto; margin-left: auto;\" title=\"\u67e5\u8be2\u7f13\u5b58\u88ab\u5220\u9664\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/04\/wxsync-2022-04-d88f9f87eeca0cff9d3624729f89be9e.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.762962962962963\" data-w=\"1080\" \/><\/div><figcaption style=\"line-height: inherit; margin-top: 10px; text-align: center; color: #999999; font-size: 0.7em;\">\u67e5\u8be2\u7f13\u5b58\u88ab\u5220\u9664<\/figcaption><\/figure>\n<p style=\"font-size: inherit; color: inherit; line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em;\">\n<h3 style=\"line-height: inherit; margin-top: 1.5em; margin-bottom: 1.5em; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #1565c0;\"><span style=\"font-size: inherit; line-height: inherit; display: inline-block; font-weight: normal; background: #1565c0; color: #ffffff; padding-top: 3px; padding-right: 10px; padding-left: 10px; border-top-right-radius: 3px; border-top-left-radius: 4px; margin-right: 2px;\">\u603b\u7ed3<\/span><\/h3>\n<ul class=\"list-paddingleft-1\" style=\"font-size: inherit; color: inherit; line-height: inherit; padding-left: 32px; list-style-type: disc;\">\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u6570\u636e\u67e5\u8be2\u8fc7\u6162\u4e00\u822c\u662f\u7d22\u5f15\u95ee\u9898\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u9009\u9519\u7d22\u5f15\uff0c\u4e5f\u53ef\u80fd\u662f\u56e0\u4e3a\u67e5\u8be2\u7684\u884c\u6570\u592a\u591a\u3002<\/span><\/li>\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u5ba2\u6237\u7aef\u548c\u6570\u636e\u5e93\u8fde\u63a5\u6570\u8fc7\u5c0f\uff0c\u4f1a\u9650\u5236sql\u7684\u67e5\u8be2\u5e76\u53d1\u6570\uff0c\u589e\u5927\u8fde\u63a5\u6570\u53ef\u4ee5\u63d0\u5347\u901f\u5ea6\u3002<\/span><\/li>\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">innodb\u91cc\u4f1a\u6709\u4e00\u5c42\u5185\u5b58buffer pool\u7528\u4e8e\u63d0\u5347\u67e5\u8be2\u901f\u5ea6\uff0c\u547d\u4e2d\u7387\u4e00\u822c&gt;99%\uff0c\u5982\u679c\u4f4e\u4e8e\u8fd9\u4e2a\u503c\uff0c\u53ef\u4ee5\u8003\u8651\u589e\u5927buffer pool\u7684\u5927\u5c0f\uff0c\u8fd9\u6837\u4e5f\u53ef\u4ee5\u63d0\u5347\u901f\u5ea6\u3002<\/span><\/li>\n<li style=\"font-size: inherit; color: inherit; line-height: inherit; margin-bottom: 0.5em;\"><span style=\"font-size: inherit; color: inherit; line-height: inherit;\">\u67e5\u8be2\u7f13\u5b58\uff08query cache\uff09\u786e\u5b9e\u80fd\u4e3a\u67e5\u8be2\u63d0\u901f\uff0c\u4f46\u4e00\u822c\u4e0d\u5efa\u8bae\u6253\u5f00\uff0c\u56e0\u4e3a\u9650\u5236\u6bd4\u8f83\u5927\uff0c\u5e76\u4e148.0\u4ee5\u540e\u7684Mysql\u91cc\u5df2\u7ecf\u5c06\u8fd9\u4e2a\u529f\u80fd\u5e72\u6389\u4e86\u3002<\/span><\/li>\n<\/ul>\n<\/section>\n<\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u719f\u7ec3\u5e94\u7528ctrl c\u548cctrl v \u5f00\u53d1curd\u4ee3\u7801\u597d\u591a\u5e74\u4e86\u3002 mysql\u67e5\u8be2\u4e3a\u4ec0\u4e48\u4f1a\u6162\uff0c\u5173\u4e8e\u8fd9\u4e2a\u95ee\u9898\uff0c\u5728\u5b9e [&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-7210","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\/7210","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=7210"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/7210\/revisions"}],"predecessor-version":[{"id":7822,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/7210\/revisions\/7822"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}