{"id":17867,"date":"2024-11-18T08:12:37","date_gmt":"2024-11-18T00:12:37","guid":{"rendered":"https:\/\/fwq.ai\/blog\/17867\/"},"modified":"2024-11-18T08:12:37","modified_gmt":"2024-11-18T00:12:37","slug":"phpstudy%e6%80%8e%e4%b9%88%e7%9c%8b%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/17867\/","title":{"rendered":"phpstudy\u600e\u4e48\u770b\u6570\u636e\u5e93"},"content":{"rendered":"<blockquote><p>\n  \u901a\u8fc7 phpstudy \u67e5\u770b\u6570\u636e\u5e93\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u76f4\u63a5\u8fde\u63a5 mysql \u547d\u4ee4\u884c\u4f7f\u7528 mysql workbench\u914d\u7f6e\u8fde\u63a5\u9009\u62e9\u8981\u67e5\u770b\u7684\u6570\u636e\u5e93\u901a\u8fc7 phpmyadmin\u5728\u5de6\u4fa7\u83dc\u5355\u4e2d\u9009\u62e9\u8981\u67e5\u770b\u7684\u6570\u636e\u5e93\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/02\/2024040216061787501.jpg\" class=\"aligncenter\" title=\"phpstudy\u600e\u4e48\u770b\u6570\u636e\u5e93\u63d2\u56fe\" alt=\"phpstudy\u600e\u4e48\u770b\u6570\u636e\u5e93\u63d2\u56fe\" \/><\/p>\n<p><strong>PHPstudy \u4e2d\u67e5\u770b\u6570\u636e\u5e93\u7684\u65b9\u6cd5<\/strong><\/p>\n<p><strong>\u76f4\u63a5\u8fde\u63a5 MySQL \u547d\u4ee4\u884c<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 PHPstudy \u63a7\u5236\u53f0\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>mysql -u root -p<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u8f93\u5165 MySQL \u7684 root \u5bc6\u7801\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>SHOW DATABASES;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u5c06\u663e\u793a\u6240\u6709\u53ef\u7528\u6570\u636e\u5e93\u3002<\/p>\n<p><strong>\u4f7f\u7528 MySQL Workbench<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u6253\u5f00 MySQL Workbench\u3002<\/li>\n<li>\u5728\u4e3b\u83dc\u5355\u4e2d\uff0c\u5355\u51fb\u201c\u7ba1\u7406\u201d &gt; \u201c\u6570\u636e\u5e93\u8fde\u63a5\u201d\u3002<\/li>\n<li>\n<p>\u5728\u201c\u8fde\u63a5\u201d\u5bf9\u8bdd\u6846\u4e2d\uff0c\u914d\u7f6e\u4ee5\u4e0b\u8bbe\u7f6e\uff1a<\/p>\n<ul>\n<li>\u8fde\u63a5\u540d\u79f0\uff1a\u4efb\u610f\u540d\u79f0<\/li>\n<li>\u4e3b\u673a\u540d\uff1alocalhost<\/li>\n<li>\u7aef\u53e3\uff1a3306<\/li>\n<li>\u7528\u6237\u540d\uff1aroot<\/li>\n<li>\u5bc6\u7801\uff1aMySQL \u7684 root \u5bc6\u7801<\/li>\n<\/ul>\n<\/li>\n<li>\u5355\u51fb\u201c\u6d4b\u8bd5\u8fde\u63a5\u201d\u4ee5\u9a8c\u8bc1\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\u3002<\/li>\n<li>\u5355\u51fb\u201c\u786e\u5b9a\u201d\u4ee5\u4fdd\u5b58\u8fde\u63a5\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u5bfc\u822a\u680f\u4e2d\uff0c\u9009\u62e9\u60a8\u8981\u67e5\u770b\u7684\u6570\u636e\u5e93\u3002<\/li>\n<\/ul>\n<p><strong>\u901a\u8fc7 PHPMyAdmin<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 PHPMyAdmin\uff08http:\/\/localhost\/phpmyadmin\uff09\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u60a8\u8981\u67e5\u770b\u7684\u6570\u636e\u5e93\u3002<\/li>\n<li>\u60a8\u5c06\u770b\u5230\u8be5\u6570\u636e\u5e93\u4e2d\u6240\u6709\u8868\u7684\u5217\u8868\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u770b\u6570\u636e\u5e93\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7 phpstudy \u67e5\u770b\u6570\u636e\u5e93\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u76f4\u63a5\u8fde\u63a5 mysql \u547d\u4ee4\u884c\u4f7f\u7528 mysql workbench\u914d\u7f6e\u8fde\u63a5\u9009\u62e9\u8981\u67e5\u770b\u7684\u6570\u636e\u5e93\u901a\u8fc7 phpmyadmin\u5728\u5de6\u4fa7\u83dc\u5355\u4e2d\u9009\u62e9\u8981\u67e5\u770b\u7684\u6570\u636e\u5e93 PHPstudy \u4e2d\u67e5\u770b\u6570\u636e\u5e93\u7684\u65b9\u6cd5 \u76f4\u63a5\u8fde\u63a5 MySQL \u547d\u4ee4\u884c \u6253\u5f00 PHPstudy \u63a7\u5236\u53f0\u3002 \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a mysql -u root -p \u767b\u5f55\u540e\u590d\u5236 \u8f93\u5165 MySQL \u7684 root \u5bc6\u7801\u3002 \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a SHOW DATABASES; \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u5c06\u663e\u793a\u6240\u6709\u53ef\u7528\u6570\u636e\u5e93\u3002 \u4f7f\u7528 MySQL Workbench \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u6253\u5f00 MySQL Workbench\u3002 \u5728\u4e3b\u83dc\u5355\u4e2d\uff0c\u5355\u51fb\u201c\u7ba1\u7406\u201d &gt; \u201c\u6570\u636e\u5e93\u8fde\u63a5\u201d\u3002 \u5728\u201c\u8fde\u63a5\u201d\u5bf9\u8bdd\u6846\u4e2d\uff0c\u914d\u7f6e\u4ee5\u4e0b\u8bbe\u7f6e\uff1a \u8fde\u63a5\u540d\u79f0\uff1a\u4efb\u610f\u540d\u79f0 \u4e3b\u673a\u540d\uff1alocalhost \u7aef\u53e3\uff1a3306 \u7528\u6237\u540d\uff1aroot \u5bc6\u7801\uff1aMySQL \u7684 root \u5bc6\u7801 \u5355\u51fb\u201c\u6d4b\u8bd5\u8fde\u63a5\u201d\u4ee5\u9a8c\u8bc1\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\u3002 \u5355\u51fb\u201c\u786e\u5b9a\u201d\u4ee5\u4fdd\u5b58\u8fde\u63a5\u3002 \u5728\u5de6\u4fa7\u5bfc\u822a\u680f\u4e2d\uff0c\u9009\u62e9\u60a8\u8981\u67e5\u770b\u7684\u6570\u636e\u5e93\u3002 \u901a\u8fc7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-17867","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/17867","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=17867"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/17867\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=17867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=17867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=17867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}