{"id":263,"date":"2009-03-21T21:55:01","date_gmt":"2009-03-21T12:55:01","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2009\/03\/21\/pdo_mysql%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/"},"modified":"2009-03-21T21:55:01","modified_gmt":"2009-03-21T12:55:01","slug":"pdo_mysql%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/263","title":{"rendered":"PDO_MYSQL\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p># pecl install pdo_mysql\u3000\u3067\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u306e\u30e1\u30e2\u3002<br \/>\nphp, mysql\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u3088\u304f\u8d77\u3053\u308a\u307e\u3059\u3002<br \/>\nsymbol lookup error: \/usr\/local\/lib\/php\/20060613\/pdo_mysql.so: undefined symbol: php_pdo_declare_long_constant.<br \/>\n\u3053\u3093\u306a\u30a8\u30e9\u30fc\u306e\u56de\u907f\u3002<br \/>\n\u307e\u305aPHP\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002&#8217;&#8211;disable-pdo&#8217; \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067PDO\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3046\u307e\u304f\u5165\u3089\u306a\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\nphp.ini\u306f\u6614\u306e\u307e\u307e\u3067OK\u3067\u3059\u3002<br \/>\nPHP\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u7d42\u308f\u3063\u305f\u3089PDO, PDO_MYSQL\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\nwget http:\/\/pecl.php.net\/get\/PDO-1.0.3.tgz<br \/>\ntar xvzf PDO-1.0.3.tgz<br \/>\ncd PDO-1.0.3<br \/>\nphpize<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<br \/>\nwget http:\/\/pecl.php.net\/get\/PDO_MYSQL-1.0.2.tgz<br \/>\ntar xvzf PDO_MYSQL-1.0.2.tgz<br \/>\ncd PDO_MYSQL-1.0.2<br \/>\nphpize<br \/>\n.\/configure &#8211;with-pdo-mysql=\/usr\/local\/mysql\u3000\/\/ mysql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<br \/>\nmake<br \/>\nmake install<br \/>\nphp.ini\u306b<br \/>\nextension=pdo.so<br \/>\nextension=pdo_mysql.so \u3092\u8ffd\u52a0\u3002<br \/>\nphp -v \u3067\u30a8\u30e9\u30fc\u304c\u306a\u3051\u308c\u3070OK\u3002<br \/>\nphpinfo(); \u3067\u3000PDO, pdo_mysql \u306e\u9805\u76ee\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p># pecl install pdo_m<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,12,7],"tags":[],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-linux","category-mysql","category-php"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}