{"id":6412,"date":"2024-11-14T09:25:38","date_gmt":"2024-11-14T01:25:38","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6412\/"},"modified":"2024-11-14T09:25:38","modified_gmt":"2024-11-14T01:25:38","slug":"mysql%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b%e8%af%a6%e7%bb%86%e6%ad%a5%e9%aa%a4","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6412\/","title":{"rendered":"mysql\u5b89\u88c5\u6559\u7a0b\u8be6\u7ec6\u6b65\u9aa4"},"content":{"rendered":"<p><strong> \u5b89\u88c5\u6559\u7a0b\uff1a\u8be6\u7ec6\u6b65\u9aa4<\/strong><\/p>\n<p><strong>\u7b2c 1 \u6b65\uff1a\u4e0b\u8f7d MySQL \u5b89\u88c5\u7a0b\u5e8f<\/strong><\/p>\n<p>\u4ece MySQL \u5b98\u7f51\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684 MySQL \u5b89\u88c5\u7a0b\u5e8f\uff0c\u6839\u636e\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u5408\u9002\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002<\/p>\n<p><strong>\u7b2c 2 \u6b65\uff1a\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong><\/p>\n<p>\u53cc\u51fb\u5b89\u88c5\u7a0b\u5e8f\u6587\u4ef6\u5e76\u6309\u7167\u5c4f\u5e55\u4e0a\u7684\u63d0\u793a\u8fdb\u884c\u64cd\u4f5c\u3002\u9009\u62e9\u60a8\u7684\u5b89\u88c5\u7c7b\u578b\uff08\u5178\u578b\u3001\u81ea\u5b9a\u4e49\u6216\u5f00\u53d1\u4eba\u5458\u9ed8\u8ba4\uff09\uff0c\u7136\u540e\u5355\u51fb\u201c\u6267\u884c\u201d\u4ee5\u5f00\u59cb\u5b89\u88c5\u3002<\/p>\n<p><strong>\u7b2c 3 \u6b65\uff1a\u9009\u62e9\u5b89\u88c5\u7c7b\u578b<\/strong><\/p>\n<p>\u5728\u201c\u5b89\u88c5\u7c7b\u578b\u201d\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c\u670d\u52a1\u5668\u8ba1\u7b97\u673a\u201d\uff0c\u56e0\u4e3a\u5b83\u5c06 MySQL \u5b89\u88c5\u4e3a\u6570\u636e\u5e93\u670d\u52a1\u5668\u3002<\/p>\n<p><strong>\u7b2c 4 \u6b65\uff1a\u914d\u7f6e MySQL \u670d\u52a1\u5668<\/strong><\/p>\n<p>\u5728\u201cMySQL Server Configuration\u201d\u7a97\u53e3\u4e2d\uff0c\u8bbe\u7f6e\u4ee5\u4e0b\u9009\u9879\uff1a<\/p>\n<ul>\n<li> <strong>TCP\/IP \u7aef\u53e3\uff1a<\/strong>\u7559\u7a7a\u6216\u4f7f\u7528\u9ed8\u8ba4\u7aef\u53e3 3306\u3002<\/li>\n<li> <strong>Root \u5bc6\u7801\uff1a<\/strong>\u8bbe\u7f6e root \u7528\u6237\u7684\u5bc6\u7801\uff0c\u8fd9\u662f MySQL \u6570\u636e\u5e93\u7684\u7ba1\u7406\u5458\u5e10\u6237\u3002\u91cd\u590d\u5bc6\u7801\u4ee5\u786e\u8ba4\u3002<\/li>\n<li> <strong>\u590d\u9009\u201c\u542f\u7528 TCP\/IP \u7f51\u7edc\u201d\uff1a<\/strong>\u786e\u4fdd MySQL \u670d\u52a1\u5668\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<p><strong>\u7b2c 5 \u6b65\uff1a\u5b89\u88c5 MySQL \u670d\u52a1<\/strong><\/p>\n<p>\u5355\u51fb\u201c\u6267\u884c\u201d\u6309\u94ae\u5f00\u59cb\u5b89\u88c5\u3002\u5b89\u88c5\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u60a8\u7684\u7cfb\u7edf\u548c Internet \u8fde\u63a5\u901f\u5ea6\u3002<\/p>\n<p><strong>\u7b2c 6 \u6b65\uff1a\u914d\u7f6e Windows \u670d\u52a1 (\u4ec5\u9002\u7528\u4e8e Windows)<\/strong><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u7cfb\u7edf\u5c06\u63d0\u793a\u60a8\u914d\u7f6e Windows \u670d\u52a1\u3002\u9009\u62e9\u201c\u81ea\u52a8\u201d\uff0c\u4ee5\u4fbf MySQL \u670d\u52a1\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u542f\u52a8\u3002<\/p>\n<p><strong>\u7b2c 7 \u6b65\uff1a\u4f7f\u7528 MySQL<\/strong><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 MySQL \u547d\u4ee4\u884c\u754c\u9762\uff08CLI\uff09\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff1a<\/p>\n<pre>mysql -u root -p<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u63d0\u793a\u60a8\u8f93\u5165 root \u5bc6\u7801\u3002\u8f93\u5165\u5bc6\u7801\u540e\uff0c\u60a8\u5c06\u8fde\u63a5\u5230 MySQL \u670d\u52a1\u5668\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5b89\u88c5\u6559\u7a0b\u8be6\u7ec6\u6b65\u9aa4\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>\u5b89\u88c5\u6559\u7a0b\uff1a\u8be6\u7ec6\u6b65\u9aa4 \u7b2c 1 \u6b65\uff1a\u4e0b\u8f7d MySQL \u5b89\u88c5\u7a0b\u5e8f \u4ece MySQL \u5b98\u7f51\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684 MySQL \u5b89\u88c5\u7a0b\u5e8f\uff0c\u6839\u636e\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u5408\u9002\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002 \u7b2c 2 \u6b65\uff1a\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f \u53cc\u51fb\u5b89\u88c5\u7a0b\u5e8f\u6587\u4ef6\u5e76\u6309\u7167\u5c4f\u5e55\u4e0a\u7684\u63d0\u793a\u8fdb\u884c\u64cd\u4f5c\u3002\u9009\u62e9\u60a8\u7684\u5b89\u88c5\u7c7b\u578b\uff08\u5178\u578b\u3001\u81ea\u5b9a\u4e49\u6216\u5f00\u53d1\u4eba\u5458\u9ed8\u8ba4\uff09\uff0c\u7136\u540e\u5355\u51fb\u201c\u6267\u884c\u201d\u4ee5\u5f00\u59cb\u5b89\u88c5\u3002 \u7b2c 3 \u6b65\uff1a\u9009\u62e9\u5b89\u88c5\u7c7b\u578b \u5728\u201c\u5b89\u88c5\u7c7b\u578b\u201d\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c\u670d\u52a1\u5668\u8ba1\u7b97\u673a\u201d\uff0c\u56e0\u4e3a\u5b83\u5c06 MySQL \u5b89\u88c5\u4e3a\u6570\u636e\u5e93\u670d\u52a1\u5668\u3002 \u7b2c 4 \u6b65\uff1a\u914d\u7f6e MySQL \u670d\u52a1\u5668 \u5728\u201cMySQL Server Configuration\u201d\u7a97\u53e3\u4e2d\uff0c\u8bbe\u7f6e\u4ee5\u4e0b\u9009\u9879\uff1a TCP\/IP \u7aef\u53e3\uff1a\u7559\u7a7a\u6216\u4f7f\u7528\u9ed8\u8ba4\u7aef\u53e3 3306\u3002 Root \u5bc6\u7801\uff1a\u8bbe\u7f6e root \u7528\u6237\u7684\u5bc6\u7801\uff0c\u8fd9\u662f MySQL \u6570\u636e\u5e93\u7684\u7ba1\u7406\u5458\u5e10\u6237\u3002\u91cd\u590d\u5bc6\u7801\u4ee5\u786e\u8ba4\u3002 \u590d\u9009\u201c\u542f\u7528 TCP\/IP \u7f51\u7edc\u201d\uff1a\u786e\u4fdd MySQL \u670d\u52a1\u5668\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u8bbf\u95ee\u3002 \u7b2c 5 \u6b65\uff1a\u5b89\u88c5 MySQL \u670d\u52a1 \u5355\u51fb\u201c\u6267\u884c\u201d\u6309\u94ae\u5f00\u59cb\u5b89\u88c5\u3002\u5b89\u88c5\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u60a8\u7684\u7cfb\u7edf\u548c Internet \u8fde\u63a5\u901f\u5ea6\u3002 \u7b2c 6 \u6b65\uff1a\u914d\u7f6e Windows [&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-6412","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6412","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=6412"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6412\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}