Advantages of mysqlnd becoming the default mysql driver in php5.3

Source: Internet
Author: User
Tags mysql functions
MySQL also designed a nativedriver named mysqlnd for PHP6, which is a MySQL database driver using the PHP open-source protocol (PHPlicense ).

MySQL also designed a native driver called mysqlnd for PHP6, which is a MySQL database driver using the PHP open source protocol (PHP license ).

MySQL also designed a native driver called mysqlnd for PHP6, which is a MySQL database driver using the PHP open source protocol (PHP license) and avoids any possible copyright problems, so PHP developers can use it with confidence.

Mysqlnd becomes the default mysql driver in php 5.3. It has the following advantages:

This solves the copyright risk problem. Due to copyright issues, PHP5 does not support MySQL by default. It does not support MySQL functions as it previously did with PHP4. Mysql also needs to copy libmysql. dll to the windows directory, and then modify php. ini.

It is important to improve functions and efficiency, including optimized persistent database connections;

Mysqlnd compilation and installation is simpler because it is an integral part of the php source code tree.

Mysqlnd currently only supports PHP6 and will support PHP5 in the future, because the acceptance of PHP5 has been steadily increasing. In particular, the increasing popularity of many PHP development frameworks such as Zend Framework will drive the popularization of PHP5.

The internal mechanism of mysqlnd and php is more closely integrated, and is the optimized mysql driver.

Mysqlnd saves more memory. From the test results, it saves 40% of memory than the traditional mysql expansion.

Mysqlnd is faster

Mysqlnd provides a wide range of performance statistics functions

This change should take effect for mysql and pdo_mysql extensions at the same time.

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.