{"id":6458,"date":"2024-11-14T11:00:21","date_gmt":"2024-11-14T03:00:21","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6458\/"},"modified":"2024-11-14T11:00:21","modified_gmt":"2024-11-14T03:00:21","slug":"%e6%80%8e%e4%b9%88%e8%bf%9c%e7%a8%8b%e8%bf%9e%e6%8e%a5mysql%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6458\/","title":{"rendered":"\u600e\u4e48\u8fdc\u7a0b\u8fde\u63a5mysql\u6570\u636e\u5e93"},"content":{"rendered":"<blockquote><p>\n  \u8fdc\u7a0b\u8fde\u63a5 mysql \u6570\u636e\u5e93\u7684\u65b9\u5f0f\u6709\uff1a\u542f\u7528\u8fdc\u7a0b\u8fde\u63a5\u5f00\u653e mysql \u670d\u52a1\u5668\u8fdc\u7a0b\u8bbf\u95ee\u7aef\u53e3\u901a\u8fc7 ssh \u7aef\u53e3\u8f6c\u53d1\u8fde\u63a5\u4f7f\u7528 mysql workbench \u7b49\u5de5\u5177\u8fde\u63a5\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202408\/05\/2024080507523478659.jpg\" class=\"aligncenter\" title=\"\u600e\u4e48\u8fdc\u7a0b\u8fde\u63a5mysql\u6570\u636e\u5e93\u63d2\u56fe\" alt=\"\u600e\u4e48\u8fdc\u7a0b\u8fde\u63a5mysql\u6570\u636e\u5e93\u63d2\u56fe\" \/><\/p>\n<p><strong>\u8fdc\u7a0b\u8fde\u63a5 MySQL \u6570\u636e\u5e93<\/strong><\/p>\n<p><strong>\u8fdc\u7a0b\u8fde\u63a5 MySQL \u6570\u636e\u5e93\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5b9e\u73b0\uff1a<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u786e\u4fdd MySQL \u670d\u52a1\u5668\u5df2\u542f\u7528\u8fdc\u7a0b\u8fde\u63a5<\/strong><\/p>\n<ul>\n<li>\n<p>\u767b\u5f55 MySQL \u670d\u52a1\u5668\u5e76\u5728\u547d\u4ee4\u884c\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<ul>\n<li><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6253\u5f00 MySQL \u670d\u52a1\u5668\u7684\u8fdc\u7a0b\u8bbf\u95ee\u7aef\u53e3<\/strong><\/p>\n<ul>\n<li>\n<p>\u5728 Windows \u4e0a\uff1a<\/p>\n<ul>\n<li>\u8fdb\u5165 <strong>Control Panel &gt; System and Security &gt; Windows Firewall<\/strong>\u3002<\/li>\n<li>\u5355\u51fb <strong>\u5141\u8bb8\u5e94\u7528\u7a0b\u5e8f\u6216\u529f\u80fd\u901a\u8fc7 Windows Defender \u9632\u706b\u5899<\/strong>\u3002<\/li>\n<li>\u5728 <strong>\u5df2\u5141\u8bb8\u7684\u5e94\u7528\u7a0b\u5e8f\u548c\u529f\u80fd<\/strong> \u5217\u8868\u4e2d\uff0c\u627e\u5230 <strong>MySQL<\/strong> \u5e76\u786e\u4fdd\u9009\u4e2d <strong>\u4e13\u7528<\/strong> \u548c <strong>\u516c\u7528<\/strong> \u590d\u9009\u6846\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5728 Mac \u4e0a\uff1a<\/p>\n<ul>\n<li>\u8fdb\u5165 <strong>System Preferences &gt; Security &amp; Privacy &gt; Firewall<\/strong>\u3002<\/li>\n<li>\u5355\u51fb <strong>\u9632\u706b\u5899\u9009\u9879<\/strong> \u6309\u94ae\u3002<\/li>\n<li>\u5355\u51fb <strong>\u6dfb\u52a0\u5e94\u7528\u7a0b\u5e8f &#8230;<\/strong> \u6309\u94ae\u5e76\u9009\u62e9 MySQL \u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>\u786e\u4fdd\u9009\u4e2d <strong>\u5141\u8bb8\u4f20\u5165\u8fde\u63a5<\/strong> \u590d\u9009\u6846\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5728 Linux \u4e0a\uff1a<\/p>\n<ul>\n<li>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<ul>\n<li><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u901a\u8fc7 SSH \u7aef\u53e3\u8f6c\u53d1\u8fde\u63a5<\/strong><\/p>\n<ul>\n<li>\u5728\u672c\u5730\u8ba1\u7b97\u673a\u4e0a\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u3002<\/li>\n<li>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<ul>\n<li><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<pre>* \u5c06 `username` \u66ff\u6362\u4e3a MySQL \u670d\u52a1\u5668\u7684\u7528\u6237\u540d\uff0c\u5c06 `mysql_server_address` \u66ff\u6362\u4e3a\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u6216\u57df\u540d\u3002\n* \u73b0\u5728\uff0c\u53ef\u4ee5\u901a\u8fc7 `localhost:3307` \u7aef\u53e3\u8fdc\u7a0b\u8fde\u63a5\u5230 MySQL \u670d\u52a1\u5668\u3002\n4. **\u4f7f\u7528 MySQL Workbench \u7b49\u5de5\u5177\u8fde\u63a5**\n   * \u6253\u5f00 MySQL Workbench\u3002\n   * \u5355\u51fb **Database &gt; Connect to Database...**\u3002\n   * \u5728 **Connection** \u9009\u9879\u5361\u4e0a\uff0c\u8f93\u5165\u4ee5\u4e0b\u4fe1\u606f\uff1a\n* **Hostname\uff1a** localhost\n* **Port\uff1a** 3307\n* **Username\uff1a** MySQL \u670d\u52a1\u5668\u7684\u7528\u6237\u540d<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fdc\u7a0b\u8fde\u63a5\u6570\u636e\u5e93\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fdc\u7a0b\u8fde\u63a5 mysql \u6570\u636e\u5e93\u7684\u65b9\u5f0f\u6709\uff1a\u542f\u7528\u8fdc\u7a0b\u8fde\u63a5\u5f00\u653e mysql \u670d\u52a1\u5668\u8fdc\u7a0b\u8bbf\u95ee\u7aef\u53e3\u901a\u8fc7 ssh \u7aef\u53e3\u8f6c\u53d1\u8fde\u63a5\u4f7f\u7528 mysql workbench \u7b49\u5de5\u5177\u8fde\u63a5 \u8fdc\u7a0b\u8fde\u63a5 MySQL \u6570\u636e\u5e93 \u8fdc\u7a0b\u8fde\u63a5 MySQL \u6570\u636e\u5e93\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5b9e\u73b0\uff1a \u786e\u4fdd MySQL \u670d\u52a1\u5668\u5df2\u542f\u7528\u8fdc\u7a0b\u8fde\u63a5 \u767b\u5f55 MySQL \u670d\u52a1\u5668\u5e76\u5728\u547d\u4ee4\u884c\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a \u6253\u5f00 MySQL \u670d\u52a1\u5668\u7684\u8fdc\u7a0b\u8bbf\u95ee\u7aef\u53e3 \u5728 Windows \u4e0a\uff1a \u8fdb\u5165 Control Panel &gt; System and Security &gt; Windows Firewall\u3002 \u5355\u51fb \u5141\u8bb8\u5e94\u7528\u7a0b\u5e8f\u6216\u529f\u80fd\u901a\u8fc7 Windows Defender \u9632\u706b\u5899\u3002 \u5728 \u5df2\u5141\u8bb8\u7684\u5e94\u7528\u7a0b\u5e8f\u548c\u529f\u80fd \u5217\u8868\u4e2d\uff0c\u627e\u5230 MySQL \u5e76\u786e\u4fdd\u9009\u4e2d \u4e13\u7528 \u548c \u516c\u7528 \u590d\u9009\u6846\u3002 \u5728 Mac \u4e0a\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-6458","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=6458"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6458\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}