{"id":31531,"date":"2023-05-24T11:49:14","date_gmt":"2023-05-24T03:49:14","guid":{"rendered":"https:\/\/docs.pingcode.com\/?p=31531"},"modified":"2023-07-31T00:08:36","modified_gmt":"2023-07-30T16:08:36","slug":"navicat-mysql%e4%b8%ad10061%e6%98%af%e4%bb%80%e4%b9%88%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/31531.html","title":{"rendered":"navicat mysql\u4e2d10061\u662f\u4ec0\u4e48\u9519\u8bef"},"content":{"rendered":"<blockquote class=\"wp-block-quote\">\n<p>navicat mysql\u4e2d10061\u662f\u8fde\u63a5\u9519\u8bef\u7684\u610f\u601d\uff0c\u4f1a\u663e\u793aCan\u2019t connect to MySQL server on \u2018xxx\u2019 (10061)\u3002\u5982\u679c\u4f60\u6536\u5230\u9519\u8bef\u4fe1\u606f \u2018Can\u2019t connect to MySQL server on some_host\u2019\uff0c\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u7684\u65b9\u6cd5\uff0c\u627e\u51fa\u95ee\u9898\u6240\u5728\uff1a\u68c0\u67e5\u670d\u52a1\u5668\u662f\u5426\u6b63\u5728\u4e3b\u673a\u4e0a\u8fd0\u884c\uff0c\u4f8b\u5982\u5728 Windows \u8fd0\u884c telnet some_host 3306 \u548c\u6309\u4e0b\u51e0\u6b21 Enter \u952e\u3002<\/p>\n<\/blockquote>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" alt=\"\" class=\"wp-image-31532\" decoding=\"async\" height=\"421\" sizes=\"(max-width: 680px) 100vw, 680px\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/05\/\u6dfb\u52a0\u6807\u9898-13-12.png?x-oss-process=image\/auto-orient,1\/format,webp\" srcset=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/05\/\u6dfb\u52a0\u6807\u9898-13-12.png?x-oss-process=image\/auto-orient,1\/format,webp 680w, https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/05\/\u6dfb\u52a0\u6807\u9898-13-12-300x186.png 300w\" width=\"680\"\/><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001navicat mysql\u4e2d10061\u662f\u4ec0\u4e48\u9519\u8bef<\/strong><\/h2>\n<p>navicat mysql\u4e2d10061\u662f\u8fde\u63a5\u9519\u8bef\u7684\u610f\u601d\uff0c\u4f1a\u663e\u793aCan\u2019t connect to MySQL server on \u2018xxx\u2019 (10061)\u3002\u5982\u679c\u4f60\u6536\u5230\u9519\u8bef\u4fe1\u606f \u2018Can\u2019t connect to MySQL server on some_host\u2019\uff0c\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u7684\u65b9\u6cd5\uff0c\u627e\u51fa\u95ee\u9898\u6240\u5728\uff1a<\/p>\n<p>1\u3001\u68c0\u67e5\u670d\u52a1\u5668\u662f\u5426\u6b63\u5728\u4e3b\u673a\u4e0a\u8fd0\u884c\uff0c\u4f8b\u5982\u5728 Windows \u8fd0\u884c telnet some_host 3306 \u548c\u6309\u4e0b\u51e0\u6b21 Enter \u952e\u3002\uff083306 \u662f\u9ed8\u8ba4\u7684 MySQL \u7aef\u53e3\u7f16\u53f7\u3002\u5982\u679c\u4f60\u7684\u670d\u52a1\u5668\u76d1\u542c\u4e00\u4e2a\u4e0d\u540c\u7684\u7aef\u53e3\uff0c\u66f4\u6539\u6b64\u503c\u3002\uff09\u5982\u679c\u90a3\u91cc\u6709\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684 MySQL \u670d\u52a1\u5668\u548c\u76d1\u542c\u8fd9\u7aef\u53e3\uff0c\u4f60\u5e94\u8be5\u5f97\u5230\u4e00\u4e2a\u5305\u62ec\u670d\u52a1\u5668\u7684\u7248\u672c\u7f16\u53f7\u7684\u56de\u5e94\u3002\u5982\u679c\u4f60\u5f97\u5230\u4e00\u4e2a\u9519\u8bef\uff0c\u4f8b\u5982\uff1atelnet: Unable to connect to remote host: Connection refused\uff0c\u90a3\u4e48\u5c31\u6ca1\u6709\u670d\u52a1\u5668\u5728\u6307\u5b9a\u7684\u7aef\u53e3\u8fd0\u884c\u3002<\/p>\n<p>2\u3001\u5982\u679c\u670d\u52a1\u5668\u5728\u672c\u5730\u4e3b\u673a\u8fd0\u884c\uff0c\u5c1d\u8bd5\u7528 mysqladmin -h localhost \u53d8\u91cf\u4f86\u4f7f\u7528 Unix \u901a\u8baf\u7aef\u6587\u4ef6\u8fde\u63a5\u3002\u786e\u8ba4\u670d\u52a1\u5668\u5df2\u914d\u7f6e\u7684\u76d1\u542c TCP\/IP \u7aef\u53e3\u7f16\u53f7\uff08\u8fd9\u662f\u7aef\u53e3\u53d8\u91cf\u7684\u503c\u3002\uff09<\/p>\n<p>3\u3001\u786e\u4fdd\u4f60\u7684 mysql \u670d\u52a1\u5668\u4e0d\u662f\u4ee5 \u2013skip-networking option \u542f\u52a8\u3002\u5982\u679c\u662f\uff0c\u4f60\u5c06\u4e0d\u80fd\u4f7f\u7528 TCP\/IP \u8fde\u63a5\u3002<\/p>\n<p>4\u3001\u68c0\u67e5\u4ee5\u786e\u4fdd\u6ca1\u6709\u9632\u706b\u5899\u5c01\u9501\u8bbf\u95ee MySQL\u3002\u5e94\u7528\u7a0b\u5e8f\u5982 ZoneAlarm \u548c Windows XP \u7684\u4e2a\u4eba\u9632\u706b\u5899\uff0c\u53ef\u80fd\u9700\u8981\u914d\u7f6e\u4ee5\u5141\u8bb8\u5916\u90e8\u8bbf\u95ee MySQL \u670d\u52a1\u5668\u3002<\/p>\n<p><strong>\u5ef6\u4f38\u9605\u8bfb\uff1a<\/strong><\/p>\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u5e94\u7528\u67b6\u6784\u662f\u4ec0\u4e48<\/strong><\/h2>\n<p>\u5e94\u7528\u67b6\u6784\uff08Application Architecture\uff09\u662f\u63cf\u8ff0\u4e86IT\u7cfb\u7edf\u529f\u80fd\u548c\u6280\u672f\u5b9e\u73b0\u7684\u5185\u5bb9\u3002\u5e94\u7528\u67b6\u6784\u5206\u4e3a\u4ee5\u4e0b\u4e24\u4e2a\u4e0d\u540c\u7684\u5c42\u6b21\uff1a<\/p>\n<ul>\n<li>\u4f01\u4e1a\u7ea7\u7684\u5e94\u7528\u67b6\u6784\uff1a\u4f01\u4e1a\u5c42\u9762\u7684\u5e94\u7528\u67b6\u6784\u8d77\u5230\u4e86\u7edf\u4e00\u89c4\u5212\u3001\u627f\u4e0a\u542f\u4e0b\u7684\u4f5c\u7528\uff0c\u5411\u4e0a\u627f\u63a5\u4e86\u4f01\u4e1a\u6218\u7565\u53d1\u5c55\u65b9\u5411\u548c\u4e1a\u52a1\u6a21\u5f0f\uff0c\u5411\u4e0b\u89c4\u5212\u548c\u6307\u5bfc\u4f01\u4e1a\u5404\u4e2aIT\u7cfb\u7edf\u7684\u5b9a\u4f4d\u548c\u529f\u80fd\u3002\u5728\u4f01\u4e1a\u67b6\u6784\u4e2d\uff0c\u5e94\u7528\u67b6\u6784\u662f\u6700\u91cd\u8981\u548c\u5de5\u4f5c\u91cf\u6700\u5927\u7684\u90e8\u5206\uff0c\u4ed6\u5305\u62ec\u4e86\u4f01\u4e1a\u7684\u5e94\u7528\u67b6\u6784\u84dd\u56fe\u3001\u67b6\u6784\u6807\u51c6\/\u539f\u5219\u3001\u7cfb\u7edf\u7684\u8fb9\u754c\u548c\u5b9a\u4e49\u3001\u7cfb\u7edf\u95f4\u7684\u5173\u8054\u5173\u7cfb\u7b49\u65b9\u9762\u7684\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<p>\u5355\u4e2a\u7cfb\u7edf\u7684\u5e94\u7528\u67b6\u6784\uff1a\u5728\u5f00\u53d1\u6216\u8bbe\u8ba1\u5355\u4e00IT\u7cfb\u7edf\u65f6\uff0c\u8bbe\u8ba1\u7cfb\u7edf\u7684\u4e3b\u8981\u6a21\u5757\u548c\u529f\u80fd\u70b9\uff0c\u7cfb\u7edf\u6280\u672f\u5b9e\u73b0\u662f\u4ece\u524d\u7aef\u5c55\u793a\u5230\u4e1a\u52a1\u5904\u7406\u903b\u8f91\uff0c\u5230\u540e\u53f0\u6570\u636e\u662f\u5982\u4f55\u67b6\u6784\u7684\u3002\u8fd9\u65b9\u9762\u7684\u5de5\u4f5c\u4e00\u822c\u5c5e\u4e8e\u9879\u76ee\u7ec4\uff0c\u800c\u4e0d\u662f\u4f01\u4e1a\u67b6\u6784\u7684\u8303\u7574\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"navicat mysql\u4e2d10061\u662f\u8fde\u63a5\u9519\u8bef\u7684\u610f\u601d\uff0c\u4f1a\u663e\u793aCan\u2019t connect to MySQL s [&hellip;]","protected":false},"author":1,"featured_media":31532,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/31531"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=31531"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/31531\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/31532"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=31531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=31531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=31531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}