After installing the php-mysql extension on CentOS, the friend said Php-mysqlnd's extended connection and operational database is better, the following is Mysqlnd introduction:
The MySQL Native driver (mysql Native Driver abbreviation: MYSQLND) was introduced in the PHP5.3.0 version. Version Mysqlnd after PHP5.4 is used as the default configuration option. The MySQL database, developed by Zend, is driven by the PHP Open Source Protocol (PHP license) to avoid any copyright issues that may exist. The MYSQLND provides a high degree of integration with the Zend engine, faster execution speed, less memory consumption, leverages the PHP stream API, and the client-side caching mechanism. Because the MYSQLND is through the Zend engine, it offers more advanced features as well as the efficient use of zend for acceleration.
The following describes how to install Php-mysqlnd:
1, if previously installed php-mysql extension, you need to uninstall Php-mysql, because when installing PHP-MYSQLND, there will be conflicts:
The command to delete the original Php-mysql extension is: Yum remove Php-mysql
2, download Remi.repo RPM package (provide the latest PHP and MySQL Yun Source), install the
#wget HTTP://RPMS.FAMILLECOLLET.COM/ENTERPRISE/REMI-RELEASE-6.RPM#RPM-UVH remi-release-6*.rpm#vim/etc/ Yum.repos.d/remi.repo
Found Enabled=0 changed to 1 (if 1 does not need to be changed)
3, command yum install PHP-MYSQLND, use the php-m command to see that the corresponding extension has been: