{"id":1441,"date":"2022-12-02T22:53:08","date_gmt":"2022-12-02T14:53:08","guid":{"rendered":"http:\/\/175.24.184.226\/?p=1441"},"modified":"2022-12-02T22:53:08","modified_gmt":"2022-12-02T14:53:08","slug":"xampp%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba%e4%b8%8e%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"\/?p=1441","title":{"rendered":"XAMPP\u73af\u5883\u642d\u5efa\u4e0e\u914d\u7f6e"},"content":{"rendered":"<h1>\u51c6\u5907<\/h1>\n<p>\u4e0b\u8f7dXAMPP\u5b89\u88c5\u5305\uff1a<a href=\"https:\/\/link.jianshu.com\/?t=https:\/\/www.apachefriends.org\/zh_cn\/index.html\">\u4e0b\u8f7d\u5730\u5740<\/a><\/p>\n<p>\u4e0b\u8f7dMySQL Workbench\uff08MySQL\u5ba2\u6237\u7aef\uff09\uff1a<a href=\"https:\/\/link.jianshu.com\/?t=http:\/\/www.mysql.com\/products\/workbench\/\">\u4e0b\u8f7d\u5730\u5740<\/a><\/p>\n<p>\u4e0b\u8f7dMicrosoft Visual C++ 2008 Redistributable Package (x86)\uff08\u53ef\u80fd\u9700\u8981\uff09\uff1a<a href=\"https:\/\/link.jianshu.com\/?t=http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=29\">\u4e0b\u8f7d\u5730\u5740<\/a><\/p>\n<h1>\u5b89\u88c5<\/h1>\n<p><strong>\u00b7\u5b89\u88c5XAMPP<\/strong><\/p>\n<p>\u8fd9\u91cc\u53ea\u5217\u51fa\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\uff1a<\/p>\n<p>1.\u6709\u65f6\u5019\u4f1a\u63d0\u793a\u5b58\u5728\u7528\u6237\u6743\u9650\u98ce\u9669\uff0c\u4e0d\u8981\u5b89\u88c5\u5230C\u76d8\uff0c\u6211\u4e00\u822c\u5b89\u88c5\u5230D\u76d8<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-2fe5e3d0b76328df.png\" alt=\"\" \/><\/p>\n<p>\u7528\u6237\u6743\u9650\u98ce\u9669<\/p>\n<p>2.\u5728\u9009\u62e9\u5b89\u88c5\u76ee\u5f55\u65f6\uff0c\u9ed8\u8ba4\u662fC:\\xampp\uff0c\u6211\u4e00\u822c\u6539\u4e3aD:\\xampp\uff0c\u66fe\u7ecf\u8bd5\u56fe\u6539\u4e3aD:\\ProgramFiles\\xampp\uff0c\u4f46\u603b\u662f\u62a5\u9519\u7f3a\u5c11Visual C++ 2008\uff0c\u6539\u56deD:\\xampp\u5c31\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-94461483381afa9c.png\" alt=\"\" \/><\/p>\n<p>\u9009\u62e9\u5b89\u88c5\u8def\u5f84<\/p>\n<p><strong>\u00b7\u5b89\u88c5MySQL Workbench<\/strong>  <\/p>\n<p>\u6ca1\u6709\u95ee\u9898\uff0c\u8fd9\u91cc\u4e0d\u505a\u8bf4\u660e\u3002<\/p>\n<p><strong>\u00b7\u5b89\u88c5Microsoft Visual C++ 2008 Redistributable Package (x86)<\/strong>  <\/p>\n<p>\u6709\u4e9b\u73af\u5883\u4e0bXAMPP\u5b89\u88c5\u65f6\u4f1a\u62a5\u9519\uff0c\u8981\u6c42\u5b89\u88c5\u8fd9\u4e2a\u8865\u4e01\u5305\uff0c\u5982\u679c\u5b89\u88c5\u540e\u4ecd\u7136\u62a5\u9519\uff0c\u5efa\u8bae\u66f4\u6362XAMPP\u7684\u5b89\u88c5\u8def\u5f84\u4e3aD:\\xampp\u3002<\/p>\n<h1>\u914d\u7f6e<\/h1>\n<p><strong>\u00b7\u914d\u7f6eApache<\/strong><\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-e727661c39f6813a.png\" alt=\"\" \/><\/p>\n<p>\u4fee\u6539\u9ed8\u8ba4\u768480\u7aef\u53e3<\/p>\n<p>\u628ahttpd.conf\u4e2d\u768480\u7aef\u53e3\u5168\u90e8\u4fee\u6539\u4e3a81\uff0c\u5982\u679c\u4e0d\u4fee\u6539\uff0c\u4f1a\u4e0e\u9ed8\u8ba480\u7aef\u53e3\u4ea7\u751f\u51b2\u7a81\uff0c\u4e25\u91cd\u65f6\u53ef\u80fd\u5bfc\u81f4\u6d4f\u89c8\u5668\u4e0d\u80fd\u6b63\u5e38\u4f7f\u7528<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-7692d44ba30ceb40.png\" alt=\"\" \/><\/p>\n<p>\u4fee\u6539\u9ed8\u8ba4\u7684443ssl<\/p>\n<p>\u628ahttpd-ssl.conf\u4e2d\u7684443\u5168\u90e8\u4fee\u6539\u4e3a4433<\/p>\n<p><strong>\u00b7\u914d\u7f6eMySQL<\/strong>  <\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-6a63b6647ccc83c1.png\" alt=\"\" \/><\/p>\n<p>\u914d\u7f6eMySQL<\/p>\n<p>\u628amy.ini\u4e2d\u76843306\u6539\u4e3a3316\uff08\u5982\u679c3306\u4e0d\u51b2\u7a81\uff0c\u53ef\u4ee5\u4e0d\u4fee\u6539\uff09<\/p>\n<p>\u628amy.ini\u4e2d\u7684\u5b57\u7b26\u96c6\u6539\u4e3autf8\uff0c\u539f\u6587\u6863\u4e2d\u5df2\u6709\uff0c\u4f46\u9700\u8981\u53d6\u6d88\u6ce8\u91ca\uff08\u5982\u679c\u4e0d\u914d\u7f6eutf8\uff0c\u53d6\u51fa\u7684\u4e2d\u6587\u662f\u4e71\u7801\uff09<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-0a0eb3ada933edf7.png\" alt=\"\" \/><\/p>\n<p>\u4f7f\u7528utf8\u5b57\u7b26\u96c6<\/p>\n<p>\u53e6\u5916\uff0cMySQL\u6570\u636e\u5e93\u4e5f\u9700\u8981\u8bbe\u7f6e\u5b57\u7b26\u96c6\uff0c\u9ed8\u8ba4\u5b57\u7b26\u96c6\u4e3alatin1\uff0c\u5728\u6570\u636e\u5e93\u4e2d\u4f1a\u9020\u6210\u4e2d\u6587\u4e71\u7801\uff0c\u5728\u521b\u5efa\u6570\u636e\u5e93\u548c\u6570\u636e\u8868\u65f6\u90fd\u8981\u6ce8\u610f\u4f7f\u7528utf8\u5b57\u7b26\u96c6<\/p>\n<p><strong>1.\u521b\u5efa\u4f7f\u7528utf8\u7684\u6570\u636e\u5e93<\/strong><\/p>\n<pre><code class=\"language-sql\">CREATE DATABASE \\`test\\` \n\nCHARACTER SET &#039;utf8&#039; \n\nCOLLATE &#039;utf8\\_general\\_ci&#039;;<\/code><\/pre>\n<p><strong>2.\u521b\u5efa\u4f7f\u7528utf8\u7684\u6570\u636e\u8868<\/strong><\/p>\n<pre><code class=\"language-sql\">CREATE TABLE \\`database\\_user\\` (  \n\n\\`ID\\` varchar(40) NOT NULL default &#039;&#039;,\n\n\\`UserID\\` varchar(40) NOT NULL default &#039;&#039;,\n\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;<\/code><\/pre>\n<h1>\u8fd0\u884c<\/h1>\n<p>xampp\u542f\u52a8\u540e\u7684\u754c\u9762\u5982\u4e0b<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-693a9a62ab118998.png\" alt=\"\" \/><\/p>\n<p>xampp\u8fd0\u884c\u4e2d<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-0d92017ef0e6a96c.png\" alt=\"\" \/><\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-8b21980c9160f12d.png\" alt=\"\" \/><\/p>\n<p>\u8fd9\u4e2a\u754c\u9762\u8bbe\u8ba1\u5bb9\u6613\u4ea7\u751f\u8bef\u89e3\uff0c\u6700\u5de6\u4fa7\u7684Service\u5217\u8868\u4e2d\uff0c<strong>\u8868\u793a\u8be5\u670d\u52a1\u5df2\u88ab\u6ce8\u518c\u4e3a\u7cfb\u7edf\u670d\u52a1<\/strong>\uff0c\u53ef\u4ee5\u5f00\u673a\u81ea\u542f\u52a8\uff0c<strong>\u5e76\u4e0d\u8868\u793a\u670d\u52a1\u5df2\u542f\u52a8<\/strong>\uff1b<strong>\u8868\u793a\u8be5\u670d\u52a1\u4e0d\u662f\u7cfb\u7edf\u670d\u52a1<\/strong>\uff0c\u4e0d\u4f1a\u5f00\u673a\u81ea\u542f\u52a8\uff0c<strong>\u5e76\u4e0d\u8868\u793a\u670d\u52a1\u672a\u542f\u52a8<\/strong>\uff1b\u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001\u8981\u770b\u201cActions\u201d\u4e2d\u662fstart\uff0c\u8fd8\u662fstop\u3002<\/p>\n<h1>\u8bbe\u7f6eMySQL\u5bc6\u7801<\/h1>\n<p>\u6309\u7167\u9ed8\u8ba4\u7684\u5b89\u88c5\u7ed3\u679c\uff0cMySQL\u6ca1\u6709\u5bc6\u7801\uff0c\u9700\u8981\u8bbe\u7f6e\u5bc6\u7801\uff0c\u53ef\u4ee5\u5728xampp\u4e2d\u542f\u52a8apache\u548cmysql\u540e\uff0c\u4e3amysql\u8bbe\u7f6e\u5bc6\u7801\u3002<\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165http:\/\/localhost:81\/dashboard\/\uff0c\u6253\u5f00\u672c\u5730\u7ba1\u7406\u9875\u9762<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-c40c324c2a29661c.png\" alt=\"\" \/><\/p>\n<p>xampp\u7ba1\u7406\u9875\u9762<\/p>\n<p>\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u201cphpMyAdmin\u201d\uff0c\u8fdb\u5165\u6570\u636e\u5e93\u7ba1\u7406\u9875\u9762<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-c4aadb594dd09050.png\" alt=\"\" \/><\/p>\n<p>\u6570\u636e\u5e93\u7ba1\u7406\u9875\u9762<\/p>\n<p>\u6253\u5f00\u7528\u6237\u8d26\u6237\uff0c\u4e3aroot\u7528\u6237\u4fee\u6539\u6743\u9650<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-b282e9983b11cb35.png\" alt=\"\" \/><\/p>\n<p>\u7528\u6237\u8d26\u6237<\/p>\n<p>\u6253\u5f00\u4fee\u6539\u5bc6\u7801\uff0c\u4e3aroot\u7528\u6237\u8bbe\u7f6e\u5bc6\u7801<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-48df6c80dfae0434.png\" alt=\"\" \/><\/p>\n<p>\u4fee\u6539\u5bc6\u7801<\/p>\n<p>\u6253\u5f00xampp\uff0c\u4fee\u6539config.inc.php\u4e2d\u7684\u6570\u636e\u5e93\u5bc6\u7801\uff08['password'] = '\u4f60\u7684\u5bc6\u7801'\uff09<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-fa91de3be31ff9c4.png\" alt=\"\" \/><\/p>\n<h2>\u90e8\u7f72<\/h2>\n<p>xampp\u6709\u4e24\u79cd\u90e8\u7f72\u65b9\u5f0f\uff1a<\/p>\n<p><strong>1.\u590d\u5236\u6587\u4ef6\u5939<\/strong><\/p>\n<p>\u590d\u5236\u6587\u4ef6\u5939\u5230..\\xampp\\htdocs\u76ee\u5f55\u4e0b\uff0c\u5982..\\xampp\\htdocs\\myweb\uff0c\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95eelocalhost:\/myweb<\/p>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4f7f\u7528\u4e0a\u5f88\u4e0d\u65b9\u4fbf\uff0c\u5efa\u8bae\u91c7\u7528\u4e0b\u4e00\u79cd\u65b9\u6cd5\u3002<\/p>\n<p><strong>2.\u5efa\u7acb\u865a\u62df\u76ee\u5f55<\/strong><\/p>\n<p>\u6253\u5f00xampp\uff0c\u5728httpd-xampp.conf\u6587\u4ef6\u4e2d\u5efa\u7acb\u865a\u62df\u76ee\u5f55  <\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-0eb0be51e39bb41a.png\" alt=\"\" \/><\/p>\n<p>httpd-xampp.conf<\/p>\n<p>\u5728\u6587\u4ef6\u5e95\u90e8\uff0c\u65b0\u589e\u5982\u4e0b\u6574\u6bb5\u914d\u7f6e\u9879\uff0c\u5176\u4e2d\u7ea2\u7ebf\u90e8\u5206\u4e3a\u865a\u62df\u8def\u5f84\uff0c\u84dd\u7ebf\u90e8\u5206\u4e3a\u6307\u5411\u7684\u7269\u7406\u8def\u5f84\uff0c\u6d4f\u89c8\u5668\u8bbf\u95ee\u5730\u5740localhost:81\\shepherd<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1863579-09581270029e2d82.png\" alt=\"\" \/><\/p>\n<p>\u865a\u62df\u76ee\u5f55\u914d\u7f6e\u9879<\/p>\n<h1>\u7ed3\u675f<\/h1>\n<p>\u672c\u6587\u8f6c\u81ea <a href=\"https:\/\/www.jianshu.com\/p\/de7a5335b787\">https:\/\/www.jianshu.com\/p\/de7a5335b787<\/a>\uff0c\u5982\u6709\u4fb5\u6743\uff0c\u8bf7\u8054\u7cfb\u5220\u9664\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u51c6\u5907 \u4e0b\u8f7dXAMPP\u5b89\u88c5\u5305\uff1a\u4e0b\u8f7d\u5730\u5740 \u4e0b\u8f7dMySQL Workbench\uff08MySQL\u5ba2\u6237\u7aef\uff09\uff1a\u4e0b\u8f7d\u5730\u5740 \u4e0b\u8f7dMicrosoft Visu   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[71],"tags":[126],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1441"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1441"}],"version-history":[{"count":1,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1441\/revisions"}],"predecessor-version":[{"id":1442,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1441\/revisions\/1442"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1441"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}