{"id":123998,"date":"2026-11-08T17:24:47","date_gmt":"2026-11-08T09:24:47","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/123998.html"},"modified":"2026-11-08T17:24:47","modified_gmt":"2026-11-08T09:24:47","slug":"mysql-%e8%bf%9e%e6%8e%a5%e8%b6%85%e6%97%b6%e4%b8%8e%e8%87%aa%e5%8a%a8%e9%87%8d%e8%bf%9e%e7%9a%84%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/123998.html","title":{"rendered":"MySQL \u8fde\u63a5\u8d85\u65f6\u4e0e\u81ea\u52a8\u91cd\u8fde\u7684\u6700\u4f73\u5b9e\u8df5\u914d\u7f6e"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<p>\u672c\u6587\u8be6\u89e3\u5982\u4f55\u901a\u8fc7 SQLAlchemy \u7684 pool_recycle \u548c pool_pre_ping \u53c2\u6570\u5f7b\u5e95\u89e3\u51b3\u201cMySQL server has gone away\u201d\u9519\u8bef&#xff0c;\u907f\u514d\u8fde\u63a5\u610f\u5916\u5931\u6548\u3001\u8d44\u6e90\u6cc4\u6f0f\u53ca\u91cd\u590d\u6267\u884c\u903b\u8f91\u7b49\u95ee\u9898\u3002<\/p>\n<p>\u672c\u6587\u8be6\u89e3\u5982\u4f55\u901a\u8fc7 sqlalchemy \u7684 &#096;pool_recycle&#096; \u548c &#096;pool_pre_ping&#096; \u53c2\u6570\u5f7b\u5e95\u89e3\u51b3\u201cmysql server has gone away\u201d\u9519\u8bef&#xff0c;\u907f\u514d\u8fde\u63a5\u610f\u5916\u5931\u6548\u3001\u8d44\u6e90\u6cc4\u6f0f\u53ca\u91cd\u590d\u6267\u884c\u903b\u8f91\u7b49\u95ee\u9898\u3002<\/p>\n<p>\u5728\u4f7f\u7528 SQLAlchemy \u4e0e MySQL \u914d\u5408\u7684\u957f\u65f6\u95f4\u8fd0\u884c\u4efb\u52a1&#xff08;\u5982\u8de8\u5e93\u540c\u6b65\u3001\u6279\u91cf ETL \u6216\u591a\u9636\u6bb5\u72b6\u6001\u66f4\u65b0&#xff09;\u4e2d&#xff0c;\u5e38\u9047\u5230 MySQL server has gone away (Error 2006) \u5f02\u5e38\u2014\u2014\u5c24\u5176\u53d1\u751f\u5728\u67e5\u8be2\u540e\u95f4\u9694\u8f83\u4e45\u624d\u6267\u884c\u540e\u7eed\u64cd\u4f5c&#xff08;\u5982\u7981\u7528\/\u542f\u7528\u903b\u8f91&#xff09;\u65f6\u3002\u8be5\u95ee\u9898\u672c\u8d28\u5e76\u975e\u7f51\u7edc\u4e2d\u65ad&#xff0c;\u800c\u662f MySQL \u670d\u52a1\u7aef\u56e0\u8d85\u65f6\u4e3b\u52a8\u5173\u95ed\u4e86\u7a7a\u95f2\u8fde\u63a5&#xff0c;\u800c SQLAlchemy \u8fde\u63a5\u6c60\u672a\u53ca\u65f6\u611f\u77e5\u6216\u5237\u65b0\u8be5\u8fde\u63a5&#xff0c;\u5bfc\u81f4\u540e\u7eed execute() \u6216 commit() \u5c1d\u8bd5\u590d\u7528\u5df2\u5931\u6548\u8fde\u63a5&#xff0c;\u4ece\u800c\u62a5\u9519\u3002<\/p>\n<p>\u6839\u672c\u539f\u56e0\u5728\u4e8e&#xff1a;MySQL \u9ed8\u8ba4 wait_timeout&#061;28800&#xff08;8 \u5c0f\u65f6&#xff09;&#xff0c;\u770b\u4f3c\u5145\u8db3&#xff0c;\u4f46\u5b9e\u9645\u751f\u6548\u7684\u662f\u66f4\u4e25\u683c\u7684 interactive_timeout&#xff08;\u901a\u5e38\u4e5f\u4e3a 28800&#xff09;&#xff1b;\u800c\u67d0\u4e9b\u4e2d\u95f4\u4ef6\u3001\u4e91\u6570\u636e\u5e93&#xff08;\u5982 AWS RDS\u3001\u963f\u91cc\u4e91 RDS&#xff09;\u6216\u4ee3\u7406\u5c42&#xff08;\u5982 ProxySQL&#xff09;\u53ef\u80fd\u4e3b\u52a8\u5c06\u7a7a\u95f2\u8fde\u63a5\u8d85\u65f6\u8bbe\u4e3a 300\u20131800 \u79d2&#xff08;5\u201330 \u5206\u949f&#xff09;\u3002\u5f53\u4f60\u7684\u7a0b\u5e8f\u5728\u9996\u6b21\u67e5\u8be2\u540e\u8fdb\u5165\u8f83\u957f\u5904\u7406\u903b\u8f91&#xff08;\u5982\u5199\u65e5\u5fd7\u3001\u8c03\u7528 Jira API\u3001\u5185\u5b58\u8ba1\u7b97\u7b49&#xff09;&#xff0c;\u8fde\u63a5\u5728\u6c60\u4e2d\u95f2\u7f6e\u8d85\u8fc7\u6b64\u9608\u503c&#xff0c;\u518d\u53d6\u7528\u65f6\u5373\u5931\u8d25\u3002<\/p>\n<p>\u2705 \u63a8\u8350\u89e3\u51b3\u65b9\u6848&#xff1a;\u5728\u521b\u5efa\u5f15\u64ce\u65f6\u663e\u5f0f\u914d\u7f6e\u8fde\u63a5\u6c60\u884c\u4e3a&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> sqlalchemy <span class=\"token keyword\">import<\/span> create_engine<\/p>\n<p><span class=\"token keyword\">engine<\/span> <span class=\"token operator\">&#061;<\/span> create_engine<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;mysql&#043;pymysql:\/\/user:pass&#064;host:3306\/dbname&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    pool_recycle<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1800<\/span><span class=\"token punctuation\">,<\/span>      <span class=\"token comment\"># \u6bcf 1800 \u79d2&#xff08;30 \u5206\u949f&#xff09;\u5f3a\u5236\u56de\u6536\u5e76\u91cd\u5efa\u8fde\u63a5<\/span><br \/>\n    pool_pre_ping<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span>      <span class=\"token comment\"># \u6bcf\u6b21\u4ece\u6c60\u4e2d\u53d6\u51fa\u8fde\u63a5\u524d&#xff0c;\u5148\u6267\u884c SELECT 1 \u68c0\u6d4b\u6709\u6548\u6027<\/span><br \/>\n    pool_size<span class=\"token operator\">&#061;<\/span><span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    max_overflow<span class=\"token operator\">&#061;<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    echo<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<ul>\n<li>pool_recycle&#061;1800&#xff1a;\u786e\u4fdd\u4efb\u4f55\u8fde\u63a5\u5728\u6c60\u4e2d\u5b58\u6d3b\u4e0d\u8d85\u8fc7 30 \u5206\u949f&#xff0c;\u4e3b\u52a8\u8f6e\u6362&#xff0c;\u89c4\u907f\u670d\u52a1\u7aef\u9759\u9ed8\u65ad\u8fde&#xff1b;<\/li>\n<li>pool_pre_ping&#061;True&#xff1a;\u6700\u5173\u952e\u7684\u4e00\u73af\u2014\u2014\u5b83\u4f1a\u5728\u6bcf\u6b21 session.execute()\u3001session.commit() \u7b49\u64cd\u4f5c\u524d&#xff0c;\u9690\u5f0f\u53d1\u9001\u4e00\u4e2a\u8f7b\u91cf SELECT 1 \u63a2\u6d3b\u3002\u82e5\u8fde\u63a5\u5df2\u5931\u6548&#xff0c;\u5219\u81ea\u52a8\u4e22\u5f03\u5e76\u65b0\u5efa\u8fde\u63a5&#xff0c;\u5bf9\u4e1a\u52a1\u4ee3\u7801\u5b8c\u5168\u900f\u660e&#xff0c;\u65e0\u9700\u624b\u52a8 close() \u6216\u5f02\u5e38\u91cd\u8bd5\u3002<\/li>\n<\/ul>\n<p>\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879&#xff1a;<\/p>\n<ul>\n<li>\u274c \u4e0d\u8981\u4f9d\u8d56 session.close() \u540e\u8fde\u63a5\u7acb\u5373\u91ca\u653e&#xff1a;close() \u4ec5\u5c06\u8fde\u63a5\u5f52\u8fd8\u6c60\u4e2d&#xff0c;\u800c\u975e\u7269\u7406\u5173\u95ed&#xff1b;\u82e5\u6c60\u4e2d\u8fde\u63a5\u5df2\u5931\u6548&#xff0c;\u4e0b\u6b21\u53d6\u51fa\u4ecd\u4f1a\u62a5\u9519&#xff1b;<\/li>\n<li>\u274c \u907f\u514d\u4ec5\u9760 ping \u5fc3\u8df3&#xff08;\u5982\u5b9a\u65f6 engine.execute(&#034;SELECT 1&#034;)&#xff09;&#xff1a;\u5b83\u65e0\u6cd5\u4fdd\u8bc1\u540e\u7eed\u4e1a\u52a1\u8fde\u63a5\u4e00\u5b9a\u6709\u6548&#xff0c;\u4e14\u6613\u9020\u6210\u8fde\u63a5\u6cc4\u6f0f&#xff08;\u5fc3\u8df3\u72ec\u5360\u8fde\u63a5\u4e0d\u5f52\u8fd8&#xff09;&#xff1b;<\/li>\n<li>\u2705 pool_pre_ping&#061;True \u5df2\u9690\u542b\u201c\u6309\u9700\u63a2\u6d3b\u201d&#xff0c;\u65e0\u9700\u989d\u5916\u5fc3\u8df3\u903b\u8f91&#xff0c;\u4e5f\u65e0\u8d44\u6e90\u6b8b\u7559\u98ce\u9669&#xff1b;<\/li>\n<li>\u2705 \u82e5\u4efb\u52a1\u6574\u4f53\u8017\u65f6\u7a33\u5b9a \u2264 25 \u5206\u949f&#xff0c;pool_recycle&#061;1500&#xff08;25 \u5206\u949f&#xff09;\u4ea6\u53ef&#xff1b;\u5efa\u8bae\u7565\u5c0f\u4e8e\u9884\u671f\u6700\u5927\u7a7a\u95f2\u95f4\u9694&#xff1b;<\/li>\n<li>? \u5982\u4ecd\u5076\u53d1\u5931\u8d25&#xff0c;\u53ef\u914d\u5408 pool_use_lifo&#061;True&#xff08;\u540e\u8fdb\u5148\u51fa&#xff09;\u63d0\u5347\u65b0\u9c9c\u8fde\u63a5\u547d\u4e2d\u7387\u3002<\/li>\n<\/ul>\n<p>\u603b\u7ed3&#xff1a;pool_recycle &#043; pool_pre_ping \u662f SQLAlchemy \u5e94\u5bf9 MySQL \u7a7a\u95f2\u65ad\u8fde\u7684\u9ec4\u91d1\u7ec4\u5408\u2014\u2014\u524d\u8005\u9632\u8001\u5316&#xff0c;\u540e\u8005\u4fdd\u6d3b\u6027\u3002\u914d\u7f6e\u540e&#xff0c;\u4f60\u4e0d\u518d\u9700\u8981\u624b\u52a8\u7ba1\u7406\u8fde\u63a5\u751f\u547d\u5468\u671f\u3001\u7f16\u5199\u91cd\u8bd5\u903b\u8f91\u6216\u5fcd\u53d7\u201cgone away\u201d\u6253\u65ad\u6d41\u7a0b&#xff0c;\u771f\u6b63\u5b9e\u73b0\u7a33\u5065\u3001\u900f\u660e\u3001\u58f0\u660e\u5f0f\u7684\u6570\u636e\u5e93\u4ea4\u4e92\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[114,100],"topic":[],"class_list":["post-123998","post","type-post","status-publish","format-standard","hentry","category-server","tag-mysql","tag-100"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL \u8fde\u63a5\u8d85\u65f6\u4e0e\u81ea\u52a8\u91cd\u8fde\u7684\u6700\u4f73\u5b9e\u8df5\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/123998.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL \u8fde\u63a5\u8d85\u65f6\u4e0e\u81ea\u52a8\u91cd\u8fde\u7684\u6700\u4f73\u5b9e\u8df5\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/123998.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-08T09:24:47+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123998.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/123998.html\",\"name\":\"MySQL \u8fde\u63a5\u8d85\u65f6\u4e0e\u81ea\u52a8\u91cd\u8fde\u7684\u6700\u4f73\u5b9e\u8df5\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-08T09:24:47+00:00\",\"dateModified\":\"2026-11-08T09:24:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/123998.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/123998.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123998.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL \u8fde\u63a5\u8d85\u65f6\u4e0e\u81ea\u52a8\u91cd\u8fde\u7684\u6700\u4f73\u5b9e\u8df5\u914d\u7f6e\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL \u8fde\u63a5\u8d85\u65f6\u4e0e\u81ea\u52a8\u91cd\u8fde\u7684\u6700\u4f73\u5b9e\u8df5\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/123998.html","og_locale":"zh_CN","og_type":"article","og_title":"MySQL \u8fde\u63a5\u8d85\u65f6\u4e0e\u81ea\u52a8\u91cd\u8fde\u7684\u6700\u4f73\u5b9e\u8df5\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/123998.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-08T09:24:47+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/123998.html","url":"https:\/\/www.wsisp.com\/helps\/123998.html","name":"MySQL \u8fde\u63a5\u8d85\u65f6\u4e0e\u81ea\u52a8\u91cd\u8fde\u7684\u6700\u4f73\u5b9e\u8df5\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-08T09:24:47+00:00","dateModified":"2026-11-08T09:24:47+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/123998.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/123998.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/123998.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MySQL \u8fde\u63a5\u8d85\u65f6\u4e0e\u81ea\u52a8\u91cd\u8fde\u7684\u6700\u4f73\u5b9e\u8df5\u914d\u7f6e"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=123998"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123998\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=123998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=123998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=123998"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=123998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}