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.