{"id":2980,"date":"2012-10-10T14:55:47","date_gmt":"2012-10-10T11:55:47","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2980"},"modified":"2013-12-13T14:49:14","modified_gmt":"2013-12-13T12:49:14","slug":"%d1%81%d0%b1%d0%be%d1%80%d0%ba%d0%b0-%d0%bc%d0%be%d0%b4%d1%83%d0%bb%d1%8f-php-pdo_mysql","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2980","title":{"rendered":"\u0421\u0431\u043e\u0440\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f php pdo_mysql"},"content":{"rendered":"<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0435\u0431\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e: <strong>mysql<\/strong> \u0443 \u0432\u0430\u0441 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0430 <strong>php<\/strong> &#8211; \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439. \u0418 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 <strong>pdo_mysql<\/strong> \u0432 <strong>php<\/strong>. \u0422\u044f\u043d\u0443\u0442\u044c <strong>mysql<\/strong> \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 <strong>php<\/strong> \u043d\u0435 \u043d\u0430\u0434\u043e, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0438\u0448\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <strong>\/usr\/mysql<\/strong> \u0438 \u0432 \u043d\u0451\u043c \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438:<\/p>\n<p><em><span style=\"color: #ff6600;\">lib\/mysql &#8211; \u0441\u044e\u0434\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u0431\u044b libmysqlclient.so \u0438 libmysqlclient_r.so<\/span><\/em><br \/>\n<em><span style=\"color: #ff6600;\"> bin &#8211; \u0441\u044e\u0434\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c mysql_config<\/span><\/em><br \/>\n<em><span style=\"color: #ff6600;\"> include &#8211; \u0441\u044e\u0434\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b<\/span><\/em><\/p>\n<p>\u042d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e \u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c <strong>pdo_mysql<\/strong>.<\/p>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434<\/span><\/strong><\/em>: <strong>Solaris 11, php-5.4.3<\/strong> (<strong>php<\/strong> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 <strong>\/usr\/php54<\/strong>)<\/p>\n<p><!--more--><strong><span style=\"color: #ff0000;\">1) \u0421\u0431\u043e\u0440\u043a\u0430 zlib<\/span><\/strong><\/p>\n<p>\u0411\u0435\u0437 \u043d\u0435\u0433\u043e \u043d\u0435 \u0441\u043e\u0431\u0435\u0440\u0451\u0442\u044c\u0441\u044f <strong>pdo_mysql<\/strong>. \u0418 \u0442\u0430\u043a, \u0441\u0442\u0430\u0432\u0438\u043c:<\/p>\n<p><code># cd \/export\/home\/skeletor\/php-5.4.3\/ext\/zlib\/<br \/>\n# mv config0.m4 config.m4<br \/>\n# CFLAGS=-m64 CPPFLAGS=-m64 CCASFLAGS=-m64 LDFLAGS=-m64 .\/configure --with-php-config=\/usr\/php54\/bin\/php-config<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u0421\u0431\u043e\u0440\u043a\u0430 pdo<\/span><\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 pdo \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0441\u0442\u043e\u0438\u0442, \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0448\u0430\u0433<\/p>\n<p><code># cd \/export\/home\/skeletor\/php-5.4.3\/ext\/pdo\/<br \/>\n# CFLAGS=-m64 CPPFLAGS=-m64 CCASFLAGS=-m64 LDFLAGS=-m64 .\/configure --with-php-config=\/usr\/php54\/bin\/php-config<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) \u0421\u0431\u043e\u0440\u043a\u0430 pdo_mysql<\/span><\/strong><\/p>\n<p><code># cd \/export\/home\/skeletor\/php-5.4.3\/ext\/pdo_mysql\/<br \/>\n# CFLAGS=-m64 CPPFLAGS=-m64 CCASFLAGS=-m64 LDFLAGS=-m64 .\/configure --with-php-config=\/usr\/php54\/bin\/php-config --with-pdo-mysql=\/usr\/mysql --with-zlib-dir=\/export\/home\/skeletor\/php-5.4.3\/ext\/zlib --includedir=\/usr\/mysql<br \/>\n# gmake<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">4) \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/span><\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0430\u0445 <strong>ext\/pdo\/module, ext\/pdo_mysql\/module<\/strong> \u0431\u0443\u0434\u0443\u0442 <strong>*.so<\/strong>, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u0438 \u043d\u0443\u0436\u043d\u044b. \u0414\u0430\u043b\u044c\u0448\u0435 \u0443\u0436\u0435 \u044f\u0441\u043d\u043e, \u0447\u0442\u043e \u0441 \u043d\u0438\u043c\u0438 \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0435\u0431\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e: mysql \u0443 \u0432\u0430\u0441 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0430 php &#8211; \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439. \u0418 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 pdo_mysql \u0432 php. \u0422\u044f\u043d\u0443\u0442\u044c mysql \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 php \u043d\u0435 \u043d\u0430\u0434\u043e, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0438\u0448\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \/usr\/mysql \u0438 \u0432 \u043d\u0451\u043c \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438: lib\/mysql &#8211; \u0441\u044e\u0434\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u0431\u044b libmysqlclient.so \u0438 libmysqlclient_r.so bin &#8211; \u0441\u044e\u0434\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c mysql_config include [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,15],"tags":[],"class_list":["post-2980","post","type-post","status-publish","format-standard","hentry","category-programming","category-www"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2980"}],"version-history":[{"count":4,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2980\/revisions"}],"predecessor-version":[{"id":4005,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2980\/revisions\/4005"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}