{"id":887,"date":"2013-06-24T11:13:59","date_gmt":"2013-06-24T03:13:59","guid":{"rendered":""},"modified":"2014-01-06T22:53:02","modified_gmt":"2014-01-06T14:53:02","slug":"php-%e5%bc%80%e5%90%afpdo-mysql%e6%89%a9%e5%b1%95%e6%a8%a1%e5%9d%97%e7%9a%84%e8%af%a6%e7%bb%86%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2013\/06\/24\/887.htm","title":{"rendered":"php \u5f00\u542fPDO MySQL\u6269\u5c55\u6a21\u5757\u7684\u8be6\u7ec6\u4ecb\u7ecd"},"content":{"rendered":"<p><span style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\">php \u5f00\u542fPDO MySQL\u6269\u5c55\u6a21\u5757\u7684\u8be6\u7ec6\u4ecb\u7ecd<\/span><\/p>\n<p style=\"margin: 0px; padding: 0px; color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\">php \u5f00\u542fPDO MySQL\u6269\u5c55\u6a21\u5757\u7684\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n<p><span style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\">\u9996\u5148\uff0c\u5c06pdo_mysql.dll\u6587\u4ef6\u653e\u5230PHP\u5b89\u88c5\u6839\u76ee\u5f55\u4e0b\u7684ext\u76ee\u5f55\u4e0b<\/span><br style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\" \/><br \/>\n<span style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\">\u6ce8\u610f\uff0c\u5982\u679c\u4f60\u5728php.ini\u6587\u4ef6\u4e2d\u914d\u7f6e\u4e86\u5176\u4ed6\u7684\u76ee\u5f55\u4e3a\u6269\u5c55\u76ee\u5f55\uff0c\u90a3\u5c31\u8981\u653e\u5230\u914d\u7f6e\u7684\u76ee\u5f55\u4e0b\u9762\uff0c\u5177\u4f53\u54ea\u4e2a\u76ee\u5f55\u624d\u662f\u4f60PHP\u7684\u6269\u5c55\u76ee\u5f55\uff0c\u8981\u770b\u770bphp.ini\u6587\u4ef6\u4e2dextension_dir = &#8220;F:\/PHP\/AppServ\/php5\/ext&#8221;\uff0c\u8fd9\u4e00\u884cextension_dir\u540e\u6307\u5411\u7684\u662f\u54ea\u4e2a\u76ee\u5f55\uff0c\u4e0a\u9762\u662f\u6211\u7684\u6269\u5c55\u76ee\u5f55\u6240\u5728<\/span><br style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\" \/><br \/>\n<span style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\">\u7136\u540e\u5728php.ini\u6587\u4ef6\u4e2d\u67e5\u627e&#8221;pdo&#8221;\uff0c\u4f60\u5c31\u53ef\u4ee5\u4e00\u4e0b\u627e\u5230\u00a0\u00a0;extension=php_pdo.dll\u00a0\u00a0\u8fd9\u4e00\u884c\uff0c\u770b\u8fd9\u884c\u524d\u9762\u662f\u5426\u6709\u5206\u53f7\uff0c\u5982\u679c\u6709\u7684\u8bdd\uff0c\u628a\u5b83\u53bb\u6389\u3002\u7136\u540e\u627e\u627e\u6709\u6ca1\u6709\u00a0\u00a0extension=php_pdo_mysql.dll\u00a0\u00a0 \u5982\u679c\u6709\uff0c\u540c\u6837\u53bb\u6389\u524d\u9762\u7684\u5206\u53f7\u3002\u5982\u679c\u6ca1\u6709\uff0c\u5219\u624b\u52a8\u6dfb\u52a0\u4e0a<\/span><br style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\" \/><br \/>\n<span style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\">\u6700\u7ec8\u8fd9\u4e24\u884c\u914d\u7f6e\u5185\u5bb9\u5982\u4e0b<\/span><br style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\" \/><br \/>\n<span style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\">extension=php_pdo.dll<\/span><br style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\" \/><br \/>\n<span style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\">extension=php_pdo_mysql.dll<\/span><br style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\" \/><br \/>\n<span style=\"color: #454545; font-family: tahoma, helvetica, arial; line-height: 21px;\">\u4fdd\u5b58php.ini\u6587\u4ef6\uff0c\u91cd\u542fapache\uff0c\u4f7f\u7528phpinfo\u51fd\u6570\u89c2\u5bdf\u6709\u6ca1\u6709pdo\u8fd9\u4e2a\u6269\u5c55\uff0c\u5982\u679c\u6709\u8bf4\u660e\u5b89\u88c5\u6210\u529f<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>php \u5f00\u542fPDO MySQL\u6269\u5c55\u6a21\u5757\u7684\u8be6\u7ec6\u4ecb\u7ecd php \u5f00\u542fPDO MySQL\u6269\u5c55\u6a21\u5757\u7684\u8be6\u7ec6\u4ecb\u7ecd \u9996\u5148\uff0c\u5c06pdo_mysql.dll\u6587\u4ef6\u653e\u5230PHP\u5b89\u88c5\u6839\u76ee\u5f55\u4e0b\u7684ext\u76ee\u5f55\u4e0b \u6ce8\u610f\uff0c\u5982\u679c\u4f60\u5728php.ini\u6587\u4ef6\u4e2d\u914d\u7f6e\u4e86\u5176\u4ed6\u7684\u76ee\u5f55\u4e3a\u6269\u5c55\u76ee\u5f55\uff0c\u90a3&#8230;<\/p>\n","protected":false},"author":1,"featured_media":65658,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[25],"topic":[],"class_list":["post-887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-phps","tag-php"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=887"}],"version-history":[{"count":3,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/887\/revisions"}],"predecessor-version":[{"id":65659,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/887\/revisions\/65659"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media\/65658"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=887"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=887"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}