{"id":5228,"date":"2024-11-14T11:21:44","date_gmt":"2024-11-14T03:21:44","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5228\/"},"modified":"2024-11-14T11:21:44","modified_gmt":"2024-11-14T03:21:44","slug":"mysql%e5%91%bd%e4%bb%a4%e7%aa%97%e5%8f%a3%e6%80%8e%e4%b9%88%e6%89%93%e5%bc%80","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5228\/","title":{"rendered":"mysql\u547d\u4ee4\u7a97\u53e3\u600e\u4e48\u6253\u5f00"},"content":{"rendered":"<blockquote><p>\n  \u5982\u4f55\u6253\u5f00 mysql \u547d\u4ee4\u7a97\u53e3\uff1f\u6253\u5f00 mysql \u547d\u4ee4\u7a97\u53e3\u7684\u65b9\u6cd5\uff1a\u901a\u8fc7\u7ec8\u7aef\/\u547d\u4ee4\u63d0\u793a\u7b26\u8f93\u5165\u547d\u4ee4\uff1amysql -u [\u7528\u6237\u540d] -p [\u5bc6\u7801]\u3002\u4f7f\u7528 mysql workbench \u7684\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u3002\u4f7f\u7528 xampp \u7684 cmd \u7a97\u53e3\u3002\u4f7f\u7528 phpmyadmin \u7684 sql \u7f16\u8f91\u5668\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/26\/2024052617034423541.jpg\" class=\"aligncenter\" title=\"mysql\u547d\u4ee4\u7a97\u53e3\u600e\u4e48\u6253\u5f00\u63d2\u56fe\" alt=\"mysql\u547d\u4ee4\u7a97\u53e3\u600e\u4e48\u6253\u5f00\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u6253\u5f00 MySQL \u547d\u4ee4\u7a97\u53e3<\/strong><\/p>\n<p>\u6253\u5f00 MySQL \u547d\u4ee4\u7a97\u53e3\u6709\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n<p><strong>1. \u901a\u8fc7\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26<\/strong><\/p>\n<ul>\n<li> <strong>Linux\/macOS:<\/strong> \u5728\u7ec8\u7aef\u7a97\u53e3\u4e2d\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>mysql -u &lt;\u7528\u6237\u540d&gt; -p &lt;\u5bc6\u7801&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li> <strong>Windows:<\/strong> \u5728\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u4e2d\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>mysql -u &lt;\u7528\u6237\u540d&gt; -p<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d \u662f\u4f60\u7684 MySQL \u7528\u6237\u540d\uff0c \u662f\u4f60\u7684\u5bc6\u7801\u3002<\/p>\n<p><strong>2. \u901a\u8fc7 MySQL Workbench<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 MySQL Workbench \u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>\u5355\u51fb\u201c\u6570\u636e\u5e93\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201c\u8fde\u63a5\u5230\u6570\u636e\u5e93\u201d\u3002<\/li>\n<li>\u5728\u201c\u8fde\u63a5\u53c2\u6570\u201d\u5bf9\u8bdd\u6846\u4e2d\uff0c\u8f93\u5165\u4f60\u7684 MySQL \u8fde\u63a5\u4fe1\u606f\uff0c\u7136\u540e\u5355\u51fb\u201c\u786e\u5b9a\u201d\u3002<\/li>\n<li>\u5728\u4e3b\u7a97\u53e3\u5e95\u90e8\u5c06\u51fa\u73b0\u4e00\u4e2a\u7a97\u53e3\uff0c\u5176\u4e2d\u5305\u542b\u4e00\u4e2a\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u3002<\/li>\n<\/ul>\n<p><strong>3. \u901a\u8fc7 XAMPP<\/strong><\/p>\n<ul>\n<li>\u542f\u52a8 XAMPP \u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>\u5355\u51fb\u201c\u542f\u52a8\u201d\u6309\u94ae\u65c1\u8fb9\u7684\u201cAdmin\u201d\u9009\u9879\u5361\u3002<\/li>\n<li>\u5728\u201cShel\u201d\u90e8\u5206\u4e0b\uff0c\u5355\u51fb\u201cCMD\u201d\u6309\u94ae\u3002<\/li>\n<li>\u5c06\u51fa\u73b0\u4e00\u4e2a\u547d\u4ee4\u7a97\u53e3\uff0c\u5176\u4e2d\u5305\u542b MySQL \u547d\u4ee4\u884c\u63d0\u793a\u7b26\u3002<\/li>\n<\/ul>\n<p><strong>4. \u901a\u8fc7 phpMyAdmin<\/strong><\/p>\n<ul>\n<li>\u5728\u7f51\u7edc\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00 phpMyAdmin\uff08\u901a\u5e38\u4f4d\u4e8e http:\/\/localhost\/\/\uff09\u3002<\/li>\n<li>\u5355\u51fb\u9875\u9762\u5e95\u90e8\u7684\u201cSQL\u201d\u9009\u9879\u5361\u3002<\/li>\n<li>\u5728 SQL \u7f16\u8f91\u5668\u4e2d\uff0c\u5c06\u51fa\u73b0\u4e00\u4e2a\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u53ef\u4ee5\u8ba9\u4f60\u8bbf\u95ee MySQL \u547d\u4ee4\u7a97\u53e3\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u6267\u884c\u5404\u79cd\u7ba1\u7406\u548c\u67e5\u8be2\u4efb\u52a1\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u547d\u4ee4\u7a97\u53e3\u600e\u4e48\u6253\u5f00\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>\u5982\u4f55\u6253\u5f00 mysql \u547d\u4ee4\u7a97\u53e3\uff1f\u6253\u5f00 mysql \u547d\u4ee4\u7a97\u53e3\u7684\u65b9\u6cd5\uff1a\u901a\u8fc7\u7ec8\u7aef\/\u547d\u4ee4\u63d0\u793a\u7b26\u8f93\u5165\u547d\u4ee4\uff1amysql -u [\u7528\u6237\u540d] -p [\u5bc6\u7801]\u3002\u4f7f\u7528 mysql workbench \u7684\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u3002\u4f7f\u7528 xampp \u7684 cmd \u7a97\u53e3\u3002\u4f7f\u7528 phpmyadmin \u7684 sql \u7f16\u8f91\u5668\u3002 \u5982\u4f55\u6253\u5f00 MySQL \u547d\u4ee4\u7a97\u53e3 \u6253\u5f00 MySQL \u547d\u4ee4\u7a97\u53e3\u6709\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a 1. \u901a\u8fc7\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26 Linux\/macOS: \u5728\u7ec8\u7aef\u7a97\u53e3\u4e2d\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a mysql -u &lt;\u7528\u6237\u540d&gt; -p &lt;\u5bc6\u7801&gt; \u767b\u5f55\u540e\u590d\u5236 Windows: \u5728\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u4e2d\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a mysql -u &lt;\u7528\u6237\u540d&gt; -p \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d \u662f\u4f60\u7684 MySQL \u7528\u6237\u540d\uff0c \u662f\u4f60\u7684\u5bc6\u7801\u3002 2. \u901a\u8fc7 MySQL Workbench \u6253\u5f00 MySQL Workbench [&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-5228","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5228","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=5228"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5228\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}