Installing PHP-MYSQLND extension instances on Linux

Source: Internet
Author: User
Tags php and mysql stream api

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:


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.