{"id":188574,"date":"2024-11-11T23:55:20","date_gmt":"2024-11-11T15:55:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/188574\/"},"modified":"2024-11-11T23:55:22","modified_gmt":"2024-11-11T15:55:22","slug":"%e6%8e%a2%e7%b4%a2localhost%e5%be%8c%e5%8f%b0%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%af%a6%e9%9a%9b%e6%87%89%e7%94%a8%e8%88%87%e5%83%b9%e5%80%bc-localhost%e5%be%8c%e5%8f%b0%e6%95%b8%e6%93%9a%e5%ba%ab","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/188574\/","title":{"rendered":"\u63a2\u7d22localhost\u5f8c\u53f0\u6578\u64da\u5eab\u7684\u5be6\u969b\u61c9\u7528\u8207\u50f9\u503c (localhost\u5f8c\u53f0\u6578\u64da\u5eab)"},"content":{"rendered":"<h1 id=\"%e6%8e%a2%e7%b4%a2localhost%e5%be%8c%e5%8f%b0%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%af%a6%e9%9a%9b%e6%87%89%e7%94%a8%e8%88%87%e5%83%b9%e5%80%bc-ASKEELwFqk\">\u63a2\u7d22localhost\u5f8c\u53f0\u6578\u64da\u5eab\u7684\u5be6\u969b\u61c9\u7528\u8207\u50f9\u503c<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u4f4d\u6642\u4ee3\uff0c\u6578\u64da\u5eab\u7684\u7ba1\u7406\u8207\u61c9\u7528\u5df2\u6210\u70ba\u5404\u884c\u5404\u696d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002\u5c24\u5176\u662f\u5728\u958b\u767c\u548c\u6e2c\u8a66\u968e\u6bb5\uff0c\u4f7f\u7528localhost\u5f8c\u53f0\u6578\u64da\u5eab\u80fd\u5920\u63d0\u4f9b\u4e00\u500b\u5b89\u5168\u4e14\u9ad8\u6548\u7684\u74b0\u5883\u4f86\u9032\u884c\u6578\u64da\u64cd\u4f5c\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0elocalhost\u5f8c\u53f0\u6578\u64da\u5eab\u7684\u5be6\u969b\u61c9\u7528\u8207\u5176\u6240\u5e36\u4f86\u7684\u50f9\u503c\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%aflocalhost%e5%be%8c%e5%8f%b0%e6%95%b8%e6%93%9a%e5%ba%ab%ef%bc%9f-ASKEELwFqk\">\u4ec0\u9ebc\u662flocalhost\u5f8c\u53f0\u6578\u64da\u5eab\uff1f<\/h2>\n<p>localhost\u662f\u6307\u672c\u5730\u8a08\u7b97\u6a5f\u7684\u5730\u5740\uff0c\u901a\u5e38\u7528\u65bc\u958b\u767c\u548c\u6e2c\u8a66\u74b0\u5883\u3002\u5728\u9019\u500b\u74b0\u5883\u4e2d\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u5728\u4e0d\u5f71\u97ff\u751f\u7522\u74b0\u5883\u7684\u60c5\u6cc1\u4e0b\uff0c\u9032\u884c\u6578\u64da\u5eab\u7684\u8a2d\u7f6e\u548c\u64cd\u4f5c\u3002localhost\u5f8c\u53f0\u6578\u64da\u5eab\u901a\u5e38\u662f\u6307\u5728\u672c\u5730\u4f3a\u670d\u5668\u4e0a\u904b\u884c\u7684\u6578\u64da\u5eab\u7cfb\u7d71\uff0c\u5982MySQL\u3001PostgreSQL\u7b49\u3002<\/p>\n<h2 id=\"localhost%e5%be%8c%e5%8f%b0%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%af%a6%e9%9a%9b%e6%87%89%e7%94%a8-ASKEELwFqk\">localhost\u5f8c\u53f0\u6578\u64da\u5eab\u7684\u5be6\u969b\u61c9\u7528<\/h2>\n<h3 id=\"1-%e9%96%8b%e7%99%bc%e8%88%87%e6%b8%ac%e8%a9%a6-ASKEELwFqk\">1. \u958b\u767c\u8207\u6e2c\u8a66<\/h3>\n<p>\u5728\u958b\u767c\u904e\u7a0b\u4e2d\uff0c\u958b\u767c\u8005\u9700\u8981\u983b\u7e41\u5730\u9032\u884c\u6578\u64da\u5eab\u64cd\u4f5c\u3002\u4f7f\u7528localhost\u5f8c\u53f0\u6578\u64da\u5eab\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u5feb\u901f\u5730\u5275\u5efa\u3001\u4fee\u6539\u548c\u522a\u9664\u6578\u64da\uff0c\u800c\u4e0d\u5fc5\u64d4\u5fc3\u5c0d\u751f\u7522\u74b0\u5883\u9020\u6210\u5f71\u97ff\u3002\u4f8b\u5982\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u5728\u672c\u5730\u74b0\u5883\u4e2d\u6e2c\u8a66\u65b0\u7684\u529f\u80fd\uff0c\u78ba\u4fdd\u5176\u5728\u4e0a\u7dda\u524d\u7684\u7a69\u5b9a\u6027\u3002<\/p>\n<h3 id=\"2-%e6%95%b8%e6%93%9a%e5%ae%89%e5%85%a8%e6%80%a7-ASKEELwFqk\">2. \u6578\u64da\u5b89\u5168\u6027<\/h3>\n<p>\u4f7f\u7528localhost\u5f8c\u53f0\u6578\u64da\u5eab\u53ef\u4ee5\u63d0\u9ad8\u6578\u64da\u7684\u5b89\u5168\u6027\u3002\u7531\u65bc\u6578\u64da\u5eab\u50c5\u5728\u672c\u5730\u904b\u884c\uff0c\u5916\u90e8\u653b\u64ca\u8005\u7121\u6cd5\u76f4\u63a5\u8a2a\u554f\u9019\u4e9b\u6578\u64da\u3002\u9019\u5c0d\u65bc\u8655\u7406\u654f\u611f\u6578\u64da\u7684\u61c9\u7528\u7a0b\u5e8f\u5c24\u70ba\u91cd\u8981\uff0c\u56e0\u70ba\u5b83\u80fd\u5920\u964d\u4f4e\u6578\u64da\u6d29\u9732\u7684\u98a8\u96aa\u3002<\/p>\n<h3 id=\"3-%e6%80%a7%e8%83%bd%e5%84%aa%e5%8c%96-ASKEELwFqk\">3. \u6027\u80fd\u512a\u5316<\/h3>\n<p>\u5728\u672c\u5730\u74b0\u5883\u4e2d\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u9032\u884c\u6027\u80fd\u6e2c\u8a66\u548c\u512a\u5316\u3002\u900f\u904e\u4f7f\u7528localhost\u5f8c\u53f0\u6578\u64da\u5eab\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u8f15\u9b06\u5730\u8abf\u6574\u6578\u64da\u5eab\u914d\u7f6e\uff0c\u6e2c\u8a66\u4e0d\u540c\u7684\u67e5\u8a62\u6027\u80fd\uff0c\u4e26\u627e\u5230\u6700\u4f73\u7684\u89e3\u6c7a\u65b9\u6848\u3002\u4f8b\u5982\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u4f7f\u7528EXPLAIN\u8a9e\u53e5\u4f86\u5206\u6790\u67e5\u8a62\u7684\u57f7\u884c\u8a08\u5283\uff0c\u5f9e\u800c\u9032\u884c\u76f8\u61c9\u7684\u512a\u5316\u3002<\/p>\n<h3 id=\"4-%e6%95%99%e5%ad%b8%e8%88%87%e5%ad%b8%e7%bf%92-ASKEELwFqk\">4. \u6559\u5b78\u8207\u5b78\u7fd2<\/h3>\n<p>\u5c0d\u65bc\u5b78\u7fd2\u6578\u64da\u5eab\u7ba1\u7406\u7684\u5b78\u751f\u548c\u65b0\u624b\u4f86\u8aaa\uff0clocalhost\u5f8c\u53f0\u6578\u64da\u5eab\u662f\u4e00\u500b\u7406\u60f3\u7684\u5b78\u7fd2\u5e73\u53f0\u3002\u5b78\u751f\u53ef\u4ee5\u5728\u672c\u5730\u74b0\u5883\u4e2d\u81ea\u7531\u5730\u5be6\u9a57\uff0c\u5b78\u7fd2SQL\u8a9e\u8a00\u548c\u6578\u64da\u5eab\u8a2d\u8a08\uff0c\u800c\u4e0d\u5fc5\u64d4\u5fc3\u5c0d\u5176\u4ed6\u7528\u6236\u9020\u6210\u5f71\u97ff\u3002<\/p>\n<h2 id=\"localhost%e5%be%8c%e5%8f%b0%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%83%b9%e5%80%bc-ASKEELwFqk\">localhost\u5f8c\u53f0\u6578\u64da\u5eab\u7684\u50f9\u503c<\/h2>\n<p>localhost\u5f8c\u53f0\u6578\u64da\u5eab\u7684\u50f9\u503c\u4e3b\u8981\u9ad4\u73fe\u5728\u4ee5\u4e0b\u5e7e\u500b\u65b9\u9762\uff1a<\/p>\n<ul>\n<li><strong>\u9748\u6d3b\u6027\uff1a<\/strong>\u958b\u767c\u8005\u53ef\u4ee5\u96a8\u6642\u8abf\u6574\u6578\u64da\u5eab\u8a2d\u7f6e\uff0c\u9032\u884c\u5be6\u9a57\u548c\u6e2c\u8a66\u3002<\/li>\n<li><strong>\u5b89\u5168\u6027\uff1a<\/strong>\u6578\u64da\u50c5\u5728\u672c\u5730\u5b58\u5132\uff0c\u964d\u4f4e\u4e86\u6578\u64da\u6d29\u9732\u7684\u98a8\u96aa\u3002<\/li>\n<li><strong>\u6210\u672c\u6548\u76ca\uff1a<\/strong>\u4f7f\u7528\u672c\u5730\u8cc7\u6e90\u9032\u884c\u958b\u767c\u548c\u6e2c\u8a66\uff0c\u7121\u9700\u984d\u5916\u7684\u96f2\u7aef\u670d\u52d9\u8cbb\u7528\u3002<\/li>\n<li><strong>\u5b78\u7fd2\u6a5f\u6703\uff1a<\/strong>\u63d0\u4f9b\u4e86\u4e00\u500b\u5b89\u5168\u7684\u74b0\u5883\uff0c\u8b93\u65b0\u624b\u53ef\u4ee5\u81ea\u7531\u5b78\u7fd2\u548c\u5be6\u9a57\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-ASKEELwFqk\">\u7d50\u8ad6<\/h2>\n<p>\u7e3d\u7d50\u4f86\u8aaa\uff0clocalhost\u5f8c\u53f0\u6578\u64da\u5eab\u5728\u958b\u767c\u3001\u6e2c\u8a66\u548c\u5b78\u7fd2\u4e2d\u626e\u6f14\u8457\u91cd\u8981\u7684\u89d2\u8272\u3002\u5b83\u4e0d\u50c5\u63d0\u4f9b\u4e86\u4e00\u500b\u5b89\u5168\u4e14\u9748\u6d3b\u7684\u74b0\u5883\uff0c\u9084\u80fd\u5920\u5e6b\u52a9\u958b\u767c\u8005\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u548c\u6578\u64da\u5b89\u5168\u6027\u3002\u5c0d\u65bc\u5e0c\u671b\u5728\u9999\u6e2f\u5c0b\u627e\u9ad8\u6548\u80fd\u7684\u89e3\u6c7a\u65b9\u6848\u7684\u7528\u6236\uff0c<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\u53ef\u4ee5\u63d0\u4f9b\u66f4\u9032\u4e00\u6b65\u7684\u652f\u6301\uff0c\u8b93\u958b\u767c\u8005\u5728\u672c\u5730\u74b0\u5883\u4e2d\u7372\u5f97\u6700\u4f73\u7684\u6578\u64da\u5eab\u7ba1\u7406\u9ad4\u9a57\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22localhost\u5f8c\u53f0\u6578\u64da\u5eab\u7684\u5be6\u969b\u61c9\u7528\u8207\u50f9\u503c\uff0c\u4e86\u89e3\u5176\u5728\u958b\u767c\u3001\u6e2c\u8a66\u53ca\u6578\u64da\u7ba1\u7406\u4e2d\u7684\u91cd\u8981\u6027\u8207\u6548\u76ca\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-188574","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/188574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=188574"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/188574\/revisions"}],"predecessor-version":[{"id":188575,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/188574\/revisions\/188575"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=188574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=188574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=188574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}