{"id":116,"date":"2009-05-28T00:12:05","date_gmt":"2009-05-27T16:12:05","guid":{"rendered":"http:\/\/leegorous.net\/blog\/?p=116"},"modified":"2012-05-18T13:32:33","modified_gmt":"2012-05-18T05:32:33","slug":"env-path-and-php-connect-db-failure","status":"publish","type":"post","link":"http:\/\/leegorous.net\/blog\/2009\/05\/28\/env-path-and-php-connect-db-failure\/","title":{"rendered":"path\u8bbe\u7f6e\u4e0d\u5f53\u5bfc\u81f4PHP\u65e0\u6cd5\u8fde\u63a5\u6570\u636e\u5e93"},"content":{"rendered":"<p>\u7cfb\u7edf\u8fd0\u884c\u5f97\u597d\u597d\u7684\uff0c\u4e0d\u8fc7\u770b\u4e0d\u60efMcAfee\u8fd0\u884c\u51e0\u5929\u4e4b\u540e\u4f1a\u52ab\u6301\u76f8\u5f53\u5927\u5185\u5b58\uff0c\u5220\u4e4b\u3002<\/p>\n<p>\u91cd\u542f\u540e\u53d1\u73b0drupal offsite\u4e86\uff0c\u63d0\u793a\u8bf4\u6570\u636e\u5e93\u8fde\u63a5\u95ee\u9898\uff0c\u8bf7\u68c0\u67e5settings.php\u4e91\u4e91\u3002<\/p>\n<p>\u83ab\u540d\u5176\u5999\uff0c\u4e4b\u524d\u8fd8\u8fd0\u884c\u826f\u597d\uff0c\u7a81\u7136\u8fde\u63a5\u4e0d\u4e0a\uff0c\u5e94\u8be5\u662f\u5916\u90e8\u539f\u56e0\uff0c\u4e0d\u8fc7\u4fdd\u9669\u8d77\u89c1\uff0c\u68c0\u67e5settings.php\uff0c\u65e0\u5f02\u6837\u3002<\/p>\n<p>\u5934\u5927\uff0c\u5c1d\u8bd5\u7528mysql\u547d\u4ee4\u8fde\u63a5\u6570\u636e\u5e93\uff0c\u5c45\u7136\u62a5\u544a<\/p>\n<p><code>'mysql' is not recognized as an internal or external command,<br \/>\noperable program or batch file.<\/code><\/p>\n<p>\u518d\u5c1d\u8bd5Start\u83dc\u5355\u91cc\u9762\u7684MySQL Command Line Client\uff0c\u53ef\u7528\u3002<\/p>\n<p>\u96be\u9053\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u51fa\u95ee\u9898\uff0c\u4e00\u770bpath\uff0c\u53d1\u73b0\u4e00\u5806\u7591\u4f3c\u8fc5\u96f7\u770b\u770b\u9020\u6210\u7684\u91cd\u590d\u8def\u5f84\uff0c\u5220\u4e4b\uff0cmysql\u7684bin\u8def\u5f84\u4e0d\u7ffc\u800c\u98de\uff0c\u63d2\u4e4b\u3002<\/p>\n<p>\u91cd\u542fapache\u670d\u52a1\u5668\uff0cdrupal \u4f9d\u7136 off\u3002\u67e5\u770bapache access log\uff0c\u6700\u540e\u7684\u542f\u52a8\u65e5\u5fd7\u91cc\u9762\u6709\u597d\u51e0\u884c\u7c7b\u4f3c\u4e8e<\/p>\n<p><code>PHP Warning:  PHP Startup: Unable to load dynamic library 'D:\\\\Program Files\\\\PHP\\\\ext\\\\php_mysqli.dll' - The specified module could not be found.\\r\\n in Unknown on line 0<\/code><\/p>\n<p>\u62a5\u544a\u4e00\u5806module\u65e0\u6cd5\u8f7d\u5165\u7684\u8b66\u544a\uff0c\u8fd9\u4e9b\u548c\u6570\u636e\u5e93\u8fde\u63a5\u5927\u6709\u5173\u8054\uff0c\u5927\u81f4\u95ee\u9898\u786e\u5b9a\uff0c\u53ea\u662f\u4e0d\u6e05\u695a\u5982\u4f55\u89e3\u51b3\u3002<\/p>\n<p>\u76f4\u89c9\u8bf4\u4fee\u6539\u4e86\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\uff0c\u5e94\u8be5\u91cd\u542f\u673a\u5668\uff0c\u5149\u91cd\u542fapache\u53ef\u80fd\u4e0d\u591f\uff0c\u4e8e\u662f\u91cd\u542f\u3002<\/p>\n<p>\u91cd\u542f\u540e\uff0c\u53d1\u89c9\u95ee\u9898\u5c45\u7136\u89e3\u51b3\u4e86\u3002<\/p>\n<p>\u539f\u7406\u4e0d\u786e\u5b9a\uff0c\u5927\u6982\u662f\u7531\u4e8epath\u8bbe\u7f6e\u4e0d\u5f53\uff0c\u65e2\u9020\u6210mysql\u4e4b\u7c7b\u7684\u547d\u4ee4\u627e\u4e0d\u5230\uff0c\u53c8\u5bfc\u81f4apache\u8f7d\u5165module\u5931\u8d25\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u7edf\u8fd0\u884c\u5f97\u597d\u597d\u7684\uff0c\u4e0d\u8fc7\u770b\u4e0d\u60efMcAfee\u8fd0\u884c\u51e0\u5929\u4e4b\u540e\u4f1a\u52ab\u6301\u76f8\u5f53\u5927\u5185\u5b58\uff0c\u5220\u4e4b\u3002 \u91cd\u542f\u540e\u53d1\u73b0drupal offs &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/leegorous.net\/blog\/2009\/05\/28\/env-path-and-php-connect-db-failure\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cpath\u8bbe\u7f6e\u4e0d\u5f53\u5bfc\u81f4PHP\u65e0\u6cd5\u8fde\u63a5\u6570\u636e\u5e93\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[21,20,19],"_links":{"self":[{"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/posts\/116"}],"collection":[{"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":2,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":1263,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions\/1263"}],"wp:attachment":[{"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}