{"id":63370,"date":"2025-04-29T08:30:24","date_gmt":"2025-04-29T00:30:24","guid":{"rendered":"https:\/\/fwq.ai\/blog\/63370\/"},"modified":"2025-04-29T08:30:24","modified_gmt":"2025-04-29T00:30:24","slug":"phpstudypro%e6%80%8e%e4%b9%88%e8%bf%9e%e6%8e%a5%e6%95%b0%e6%8d%ae%e5%ba%93-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/63370\/","title":{"rendered":"phpstudypro\u600e\u4e48\u8fde\u63a5\u6570\u636e\u5e93"},"content":{"rendered":"<blockquote><p>\n  \u5728 phpstudy pro \u4e2d\u8fde\u63a5\u6570\u636e\u5e93\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u542f\u52a8 phpmyadmin \u5e76\u9009\u62e9\u6570\u636e\u5e93\u540d\u79f0\u3002\u521b\u5efa\u7528\u6237\uff0c\u6388\u4e88\u5168\u5c40\u6743\u9650\u3002\u67e5\u627e\u4e3b\u670d\u52a1\u5668\u5730\u5740\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002\u4f7f\u7528 mysqli \u51fd\u6570\u5728 php \u4ee3\u7801\u4e2d\u8fde\u63a5\u6570\u636e\u5e93\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/02\/2024040215332196322.jpg\" class=\"aligncenter\" title=\"phpstudypro\u600e\u4e48\u8fde\u63a5\u6570\u636e\u5e93\u63d2\u56fe\" alt=\"phpstudypro\u600e\u4e48\u8fde\u63a5\u6570\u636e\u5e93\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 phpStudy Pro \u4e2d\u8fde\u63a5\u6570\u636e\u5e93<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u6253\u5f00 phpMyAdmin<\/strong><\/p>\n<ul>\n<li>\u542f\u52a8 phpStudy Pro\uff0c\u70b9\u51fb\u201c\u5de5\u5177\u201d &gt; \u201cphpMyAdmin\u201d\u3002<\/li>\n<li>\u5728\u51fa\u73b0\u7684\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u60a8\u8981\u8fde\u63a5\u7684\u6570\u636e\u5e93\u540d\u79f0\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 2\uff1a\u521b\u5efa\u6570\u636e\u5e93\u7528\u6237<\/strong><\/p>\n<ul>\n<li>\u70b9\u51fb\u201c\u7528\u6237\u201d\u9009\u9879\u5361\u3002<\/li>\n<li>\u5728\u201c\u6dfb\u52a0\u7528\u6237\u5e10\u6237\u201d\u90e8\u5206\uff0c\u8f93\u5165\u65b0\u7528\u6237\u540d\u79f0\u548c\u5bc6\u7801\u3002<\/li>\n<li>\u9009\u62e9\u201c\u672c\u5730\u201d\u4e3b\u673a\u3002<\/li>\n<li>\u52fe\u9009\u201c\u5168\u5c40\u201d\u590d\u9009\u6846\u6765\u6388\u4e88\u7528\u6237\u5bf9\u6240\u6709\u6570\u636e\u5e93\u7684\u8bbf\u95ee\u6743\u9650\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u521b\u5efa\u7528\u6237\u201d\u6309\u94ae\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 3\uff1a\u6388\u4e88\u7528\u6237\u6743\u9650<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u5728\u201c\u7528\u6237\u201d\u9009\u9879\u5361\u4e2d\uff0c\u627e\u5230\u60a8\u521a\u521b\u5efa\u7684\u7528\u6237\u540d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u7f16\u8f91\u6743\u9650\u201d\u94fe\u63a5\u3002<\/li>\n<li>\u5728\u201c\u6570\u636e\u5e93\u201d\u90e8\u5206\uff0c\u52fe\u9009\u60a8\u5e0c\u671b\u6388\u4e88\u7528\u6237\u8bbf\u95ee\u6743\u9650\u7684\u6570\u636e\u5e93\u7684\u590d\u9009\u6846\u3002<\/li>\n<li>\u5728\u201c\u5168\u5c40\u6743\u9650\u201d\u90e8\u5206\uff0c\u52fe\u9009\u201c\u6240\u6709\u6743\u9650\u201d\u590d\u9009\u6846\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 4\uff1a\u8bbe\u7f6e PHP \u8fde\u63a5\u4fe1\u606f<\/strong><\/p>\n<ul>\n<li>\u5728 phpMyAdmin \u4e2d\uff0c\u70b9\u51fb\u201c\u6570\u636e\u5e93\u201d\u9009\u9879\u5361\u3002<\/li>\n<li>\u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u60a8\u7684\u6570\u636e\u5e93\u540d\u79f0\u3002<\/li>\n<li>\n<p>\u5728\u201c\u4e3b\u670d\u52a1\u5668\u201d\u90e8\u5206\uff0c\u67e5\u627e\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n<ul>\n<li>\u5730\u5740\uff1a\u901a\u5e38\u4e3a\u201clocalhost\u201d<\/li>\n<li>\u7528\u6237\u540d\uff1a\u60a8\u5728\u6b65\u9aa4 2 \u4e2d\u521b\u5efa\u7684\u7528\u6237<\/li>\n<li>\u5bc6\u7801\uff1a\u60a8\u5728\u6b65\u9aa4 2 \u4e2d\u8bbe\u7f6e\u7684\u5bc6\u7801<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 5\uff1a\u5728 PHP \u4ee3\u7801\u4e2d\u8fde\u63a5\u6570\u636e\u5e93<\/strong><\/p>\n<p>\u5728\u60a8\u7684 PHP \u4ee3\u7801\u4e2d\uff0c\u4f7f\u7528\u4ee5\u4e0b\u51fd\u6570\u8fde\u63a5\u5230\u6570\u636e\u5e93\uff1a<\/p>\n<pre>$mysqli = new mysqli(\"localhost\", \"\u7528\u6237\u540d\", \"\u5bc6\u7801\", \"\u6570\u636e\u5e93\u540d\u79f0\");<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5982\u679c\u8fde\u63a5\u6210\u529f\uff0c$mysqli \u53d8\u91cf\u5c06\u5305\u542b\u4e00\u4e2a\u6307\u5411\u6570\u636e\u5e93\u8fde\u63a5\u7684\u8d44\u6e90\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fpro\u600e\u4e48\u8fde\u63a5\u6570\u636e\u5e93\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8FDCServers\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 phpstudy pro \u4e2d\u8fde\u63a5\u6570\u636e\u5e93\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u542f\u52a8 phpmyadmin \u5e76\u9009\u62e9\u6570\u636e\u5e93\u540d\u79f0\u3002\u521b\u5efa\u7528\u6237\uff0c\u6388\u4e88\u5168\u5c40\u6743\u9650\u3002\u67e5\u627e\u4e3b\u670d\u52a1\u5668\u5730\u5740\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002\u4f7f\u7528 mysqli \u51fd\u6570\u5728 php \u4ee3\u7801\u4e2d\u8fde\u63a5\u6570\u636e\u5e93\u3002 \u5982\u4f55\u5728 phpStudy Pro \u4e2d\u8fde\u63a5\u6570\u636e\u5e93 \u6b65\u9aa4 1\uff1a\u6253\u5f00 phpMyAdmin \u542f\u52a8 phpStudy Pro\uff0c\u70b9\u51fb\u201c\u5de5\u5177\u201d &gt; \u201cphpMyAdmin\u201d\u3002 \u5728\u51fa\u73b0\u7684\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u60a8\u8981\u8fde\u63a5\u7684\u6570\u636e\u5e93\u540d\u79f0\u3002 \u6b65\u9aa4 2\uff1a\u521b\u5efa\u6570\u636e\u5e93\u7528\u6237 \u70b9\u51fb\u201c\u7528\u6237\u201d\u9009\u9879\u5361\u3002 \u5728\u201c\u6dfb\u52a0\u7528\u6237\u5e10\u6237\u201d\u90e8\u5206\uff0c\u8f93\u5165\u65b0\u7528\u6237\u540d\u79f0\u548c\u5bc6\u7801\u3002 \u9009\u62e9\u201c\u672c\u5730\u201d\u4e3b\u673a\u3002 \u52fe\u9009\u201c\u5168\u5c40\u201d\u590d\u9009\u6846\u6765\u6388\u4e88\u7528\u6237\u5bf9\u6240\u6709\u6570\u636e\u5e93\u7684\u8bbf\u95ee\u6743\u9650\u3002 \u70b9\u51fb\u201c\u521b\u5efa\u7528\u6237\u201d\u6309\u94ae\u3002 \u6b65\u9aa4 3\uff1a\u6388\u4e88\u7528\u6237\u6743\u9650 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u5728\u201c\u7528\u6237\u201d\u9009\u9879\u5361\u4e2d\uff0c\u627e\u5230\u60a8\u521a\u521b\u5efa\u7684\u7528\u6237\u540d\u3002 \u70b9\u51fb\u201c\u7f16\u8f91\u6743\u9650\u201d\u94fe\u63a5\u3002 \u5728\u201c\u6570\u636e\u5e93\u201d\u90e8\u5206\uff0c\u52fe\u9009\u60a8\u5e0c\u671b\u6388\u4e88\u7528\u6237\u8bbf\u95ee\u6743\u9650\u7684\u6570\u636e\u5e93\u7684\u590d\u9009\u6846\u3002 \u5728\u201c\u5168\u5c40\u6743\u9650\u201d\u90e8\u5206\uff0c\u52fe\u9009\u201c\u6240\u6709\u6743\u9650\u201d\u590d\u9009\u6846\u3002 \u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u3002 \u6b65\u9aa4 4\uff1a\u8bbe\u7f6e PHP \u8fde\u63a5\u4fe1\u606f \u5728 phpMyAdmin \u4e2d\uff0c\u70b9\u51fb\u201c\u6570\u636e\u5e93\u201d\u9009\u9879\u5361\u3002 \u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u60a8\u7684\u6570\u636e\u5e93\u540d\u79f0\u3002 \u5728\u201c\u4e3b\u670d\u52a1\u5668\u201d\u90e8\u5206\uff0c\u67e5\u627e\u4ee5\u4e0b\u4fe1\u606f\uff1a \u5730\u5740\uff1a\u901a\u5e38\u4e3a\u201clocalhost\u201d \u7528\u6237\u540d\uff1a\u60a8\u5728\u6b65\u9aa4 2 \u4e2d\u521b\u5efa\u7684\u7528\u6237 \u5bc6\u7801\uff1a\u60a8\u5728\u6b65\u9aa4 2 \u4e2d\u8bbe\u7f6e\u7684\u5bc6\u7801 \u6b65\u9aa4 [&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-63370","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/63370","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=63370"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/63370\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=63370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=63370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=63370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}