作者:zhanhailiang 日期:2015-01-01
MySQL Native Driver简称mysqlnd,作为libmysqlclient替换品于PHP5.3.0版本引入。之前,MySQL数据库扩大mysql,mysqli,PDO MYSQL都是通过libmysqlclient实现与MySQL Server的通讯。引入mysqlnd,这3个扩大都可以通过mysqlnd实现与MySQL Server的通讯。
./configure --prefix=/usr/local/php⑸.3.29-production --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-openssl --with-pdo-mysql=mysqlnd --enable-fpm --enable-mysqlnd
make && make install
[root@/usr/local]# /usr/local/php⑸.3.29-production/bin/php -ini|grep mysqlnd
Configure Command => './configure' '--prefix=/usr/local/php⑸.3.29-production' '--with-pear' '--with-iconv=/usr/local/' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-openssl' '--with-libxml-dir' '--with-curl' '--with-pdo-mysql=mysqlnd' '--disable-fileinfo' '--enable-fpm' '--enable-mysqlnd' '--with-mcrypt' '--enable-mbstring'
Client API version => mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $
Client API library version => mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $
mysqlnd
mysqlnd => enabled
Version => mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $
Client API version => mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $