{"id":109698,"date":"2024-11-22T11:29:12","date_gmt":"2024-11-22T03:29:12","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=109698"},"modified":"2024-11-22T11:29:12","modified_gmt":"2024-11-22T03:29:12","slug":"linux-cents-phpodd","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-cents-phpodd.html","title":{"rendered":"\u6559\u5927\u5bb6\u5982\u4f55\u5728Linux(CentOS6.5)\u4e0a\u5b89\u88c5PHP PDO\u6269\u5c55\u5e93"},"content":{"rendered":"

\u4e0b\u9762\u7ed9\u5927\u5bb6\u5206\u4eabPDO\u6269\u5c55\u5982\u4f55\u5728CentOS6.5\u4e0a\u5b89\u88c5\uff08\u84dd\u8272\u5b57\u4f53\u4e3a\u547d\u4ee4\uff09<\/span>
\n\"\"
\n1.cd php-7.2.0\/ext\/pdo_mysql\u00a0<\/span>\/\/\u5177\u4f53\u8def\u5f84\u81ea\u884c\u4fee\u6539
\n2.\/usr\/local\/php\/bin\/phpize<\/span>\/\/\u5efa\u7acbPHP\u7684\u5916\u6302\u6a21\u5757
\n3..\/configure --with-php-config=\/usr\/local\/php\/bin\/php-config --with-pdo-mysql=mysqlnd<\/span>\/\/\u4e00\u7cfb\u5217\u7684\u914d\u7f6e
\n4.make<\/span>&&make install<\/span>\/\/emmm...\u4e0d\u7528\u89e3\u91ca\u5427
\n5.vi \/etc\/php.ini<\/span>\/\/\u82e5\u6ca1\u6709\u6b64\u6587\u4ef6\u8bf7\u6267\u884c\uff1acd php-7.2.0 \u4e28 cp php.ini-development \/etc\/php.ini \uff0c\u6267\u884c\u6210\u529f\u540e\u518d\u6267\u884c\u6b64\u6b65\u9aa4
\n6.\u5728\u666e\u901a\u6a21\u5f0f\u4e0a\u8f93\u5165 \/pdo \u5feb\u901f\u5b9a\u4f4d\u5230pdo\u914d\u7f6e\u9879
\n7.\u53bb\u6389 extension=php_pdo_mysql.dll \u7684\u6ce8\u91ca \u4fee\u6539\u4e3a extension=pdo_mysql.so \u4fdd\u5b58\u3002
\n8.\u6267\u884cphp -m<\/span>
\n9.\u82e5\u6709 pdo_mysql && pdo_sqlite \u8fd9\u4e24\u4e2a\u6269\u5c55\uff0c\u5219\u4ee3\u8868\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/www.oschina.net\/question\/3798916_2279920<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/linux-cents-phpodd.html<\/a>\u7f16\u8f91\uff1a\u738b\u5065\u8fbe\uff0c\u5ba1\u6838\u5458\uff1a\u6682\u65e0<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u4e0b\u9762\u7ed9\u5927\u5bb6\u5206\u4eabPDO\u6269\u5c55\u5982\u4f55\u5728CentOS6.5\u4e0a\u5b89\u88c5\uff08\u84dd\u8272\u5b57\u4f53\u4e3a\u547d\u4ee4\uff09 1.cd php-7.2.0\/ext […]<\/p>\n","protected":false},"author":1893,"featured_media":109703,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-109698","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/109698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1893"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=109698"}],"version-history":[{"count":14,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/109698\/revisions"}],"predecessor-version":[{"id":110357,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/109698\/revisions\/110357"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/109703"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=109698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=109698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=109698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}