{"id":34116,"date":"2024-11-25T11:13:24","date_gmt":"2024-11-25T03:13:24","guid":{"rendered":"https:\/\/fwq.ai\/blog\/34116\/"},"modified":"2024-11-25T11:13:24","modified_gmt":"2024-11-25T03:13:24","slug":"%e5%b8%9d%e5%9b%bdcms%e6%95%b0%e6%8d%ae%e5%ba%93root%e5%af%86%e7%a0%81%e5%9c%a8%e5%93%aa%e4%b8%aa%e6%96%87%e4%bb%b6%e5%a4%b9%e9%87%8c%e6%9f%a5%e7%9c%8b","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/34116\/","title":{"rendered":"\u5e1d\u56fdcms\u6570\u636e\u5e93root\u5bc6\u7801\u5728\u54ea\u4e2a\u6587\u4ef6\u5939\u91cc\u67e5\u770b"},"content":{"rendered":"<blockquote><p>\n  \u5e1d\u56fdcms\u6570\u636e\u5e93root\u5bc6\u7801\u4fdd\u5b58\u5728\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\/data\/config.php\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u67e5\u627e\u5305\u542b$dbpasswordpre\u5b57\u6bb5\u7684\u884c\uff0c\u5176\u503c\u4e3aroot\u5bc6\u7801\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/17\/2024041708152187617.jpg\" class=\"aligncenter\" title=\"\u5e1d\u56fdcms\u6570\u636e\u5e93root\u5bc6\u7801\u5728\u54ea\u4e2a\u6587\u4ef6\u5939\u91cc\u67e5\u770b\u63d2\u56fe\" alt=\"\u5e1d\u56fdcms\u6570\u636e\u5e93root\u5bc6\u7801\u5728\u54ea\u4e2a\u6587\u4ef6\u5939\u91cc\u67e5\u770b\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5e1d\u56fdCMS\u6570\u636e\u5e93root\u5bc6\u7801\u67e5\u770b\u65b9\u6cd5<\/strong><\/p>\n<p>EmpireCMS\u6570\u636e\u5e93root\u5bc6\u7801\u4fdd\u5b58\u5728\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u8be5\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u7684\/data\/config.php\u4e2d\u3002<\/p>\n<p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<ol>\n<li> <strong>\u627e\u5230\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6\uff1a<\/strong>\u901a\u8fc7FTP\u6216\u6587\u4ef6\u7ba1\u7406\u5668\u5bfc\u822a\u5230\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u7684\/data\u6587\u4ef6\u5939\uff0c\u627e\u5230config.php\u6587\u4ef6\u3002<\/li>\n<li> <strong>\u6253\u5f00\u914d\u7f6e\u6587\u4ef6\uff1a<\/strong>\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982\u8bb0\u4e8b\u672c\u6216Sublime Text\uff09\u6253\u5f00config.php\u6587\u4ef6\u3002<\/li>\n<li>\n<p><strong>\u67e5\u627eroot\u5bc6\u7801\uff1a<\/strong>\u5728config.php\u6587\u4ef6\u4e2d\uff0c\u641c\u7d22\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre>$dbserverpre = 'localhost';\n$dbportpre = 3306;\n$dbdatabasepre = 'emlog_pre';\n$dbusernamepre = 'root';\n$dbpasswordpre = '';\/\/\u6b64\u5904\u586b\u5199\u6570\u636e\u5e93root\u5bc6\u7801\n$dbnamepre = 'empirecms';<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d\uff0c$dbpasswordpre\u7684\u503c\u5c31\u662f\u6570\u636e\u5e93root\u5bc6\u7801\u3002<\/p>\n<\/li>\n<li> <strong>\u6ce8\u610f\uff1a<\/strong>\u8bf7\u52a1\u5fc5\u4ed4\u7ec6\u68c0\u67e5\u5bc6\u7801\uff0c\u786e\u4fdd\u65e0\u8bef\u3002\u5982\u679c\u5bc6\u7801\u4e3a\u7a7a\uff08&#8221;\uff09\uff0c\u5219\u8868\u793a\u5c1a\u672a\u8bbe\u7f6eroot\u5bc6\u7801\u3002<\/li>\n<\/ol>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u60a8\u65e0\u6cd5\u627e\u5230config.php\u6587\u4ef6\uff0c\u8bf7\u68c0\u67e5\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u7684\u5176\u4ed6\u6587\u4ef6\u5939\uff0c\u5982\/include\u6216\/system\u3002<\/li>\n<li>\u51fa\u4e8e\u5b89\u5168\u8003\u8651\uff0c\u5efa\u8bae\u8bbe\u7f6e\u4e00\u4e2a\u5f3a\u58ee\u7684root\u5bc6\u7801\u3002<\/li>\n<li>\u5b9a\u671f\u5907\u4efd\u60a8\u7684\u6570\u636e\u5e93\u548c\u76f8\u5173\u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u9632\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6570\u636e\u5e93root\u5bc6\u7801\u5728\u54ea\u4e2a\u6587\u4ef6\u5939\u91cc\u67e5\u770b\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>\u5e1d\u56fdcms\u6570\u636e\u5e93root\u5bc6\u7801\u4fdd\u5b58\u5728\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\/data\/config.php\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u67e5\u627e\u5305\u542b$dbpasswordpre\u5b57\u6bb5\u7684\u884c\uff0c\u5176\u503c\u4e3aroot\u5bc6\u7801\u3002 \u5e1d\u56fdCMS\u6570\u636e\u5e93root\u5bc6\u7801\u67e5\u770b\u65b9\u6cd5 EmpireCMS\u6570\u636e\u5e93root\u5bc6\u7801\u4fdd\u5b58\u5728\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u8be5\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u7684\/data\/config.php\u4e2d\u3002 \u6b65\u9aa4\uff1a \u627e\u5230\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6\uff1a\u901a\u8fc7FTP\u6216\u6587\u4ef6\u7ba1\u7406\u5668\u5bfc\u822a\u5230\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u7684\/data\u6587\u4ef6\u5939\uff0c\u627e\u5230config.php\u6587\u4ef6\u3002 \u6253\u5f00\u914d\u7f6e\u6587\u4ef6\uff1a\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982\u8bb0\u4e8b\u672c\u6216Sublime Text\uff09\u6253\u5f00config.php\u6587\u4ef6\u3002 \u67e5\u627eroot\u5bc6\u7801\uff1a\u5728config.php\u6587\u4ef6\u4e2d\uff0c\u641c\u7d22\u4ee5\u4e0b\u884c\uff1a $dbserverpre = &#8216;localhost&#8217;; $dbportpre = 3306; $dbdatabasepre = &#8217;emlog_pre&#8217;; $dbusernamepre = &#8216;root&#8217;; $dbpasswordpre = &#8221;;\/\/\u6b64\u5904\u586b\u5199\u6570\u636e\u5e93root\u5bc6\u7801 $dbnamepre = &#8217;empirecms&#8217;; \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d\uff0c$dbpasswordpre\u7684\u503c\u5c31\u662f\u6570\u636e\u5e93root\u5bc6\u7801\u3002 \u6ce8\u610f\uff1a\u8bf7\u52a1\u5fc5\u4ed4\u7ec6\u68c0\u67e5\u5bc6\u7801\uff0c\u786e\u4fdd\u65e0\u8bef\u3002\u5982\u679c\u5bc6\u7801\u4e3a\u7a7a\uff08&#8221;\uff09\uff0c\u5219\u8868\u793a\u5c1a\u672a\u8bbe\u7f6eroot\u5bc6\u7801\u3002 \u63d0\u793a\uff1a \u5982\u679c\u60a8\u65e0\u6cd5\u627e\u5230config.php\u6587\u4ef6\uff0c\u8bf7\u68c0\u67e5\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u7684\u5176\u4ed6\u6587\u4ef6\u5939\uff0c\u5982\/include\u6216\/system\u3002 \u51fa\u4e8e\u5b89\u5168\u8003\u8651\uff0c\u5efa\u8bae\u8bbe\u7f6e\u4e00\u4e2a\u5f3a\u58ee\u7684root\u5bc6\u7801\u3002 \u5b9a\u671f\u5907\u4efd\u60a8\u7684\u6570\u636e\u5e93\u548c\u76f8\u5173\u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u9632\u3002 \u4ee5\u4e0a\u5c31\u662f\u6570\u636e\u5e93root\u5bc6\u7801\u5728\u54ea\u4e2a\u6587\u4ef6\u5939\u91cc\u67e5\u770b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-34116","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/34116","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=34116"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/34116\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=34116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=34116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=34116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}