Mysqlnd in PHP 5.3

Source: Internet
Author: User
Tags mysql client mysql functions zend framework
PHP 5.3 has always been a lot ProgramUsers are afraid to use it. Indeed, the API has made many changes and functions have changed a lot. Therefore, more tests are required. but today, I found that PHP 5.3 has a MySQL change, that is

Mysqlnd, which is a mysql client of PHP version, effectively reduces memory usage and improves performance. For details, refer:

Http://dev.mysql.com/downloads/connector/php-mysqlnd/

Http://forge.mysql.com/wiki/PHP_MYSQLND

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.

It is more convenient to compile PHP. libmysql is not required and is already built into the source code.

However, in this blog, some of you mentioned the problems and notes.

Http://chen.bmforum.com/post/59/

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.