php libmysql的替代模块:mysqlnd
URL:http://blog.iyi.cn/start/2007/10/php_libmysqlmysqlnd.html
mysql 发不了一个MySQL native driver for PHP - mysqlnd来替代php5/php6中自带的mysqli模块,该模块可以在这里下载到:
- Download php_mysqli.dll for PHP 5.2.1 (Windows)
- Download source code (tar.gz)
- SVN repository: http://svn.mysql.com/svnpublic/php-mysqlnd/
- SVN Web Interface: http://svn.mysql.com/fisheye/browse/php-mysqlnd
安装方法是用该模块替换原来的mysqli模块,或者编译php之前,将ext/mysqli目录替换掉,然后在php源代码根目录执行:buildconf --force
编译的时候加上 --with-mysqli --enable-mysqlnd即可。
官方描述的这个模块的主要优点是:
On the C-level mysqlnd uses many of the proven and stable PHP internal functions. All the code of the new driver is contained in the ext/mysqli source directory. There is no need to link any external libraries. Thus you neither need to install the MySQL client library to compile PHP with ext/mysqli support nor do you need to take care of versions. Compiling has been made easier.
mysqlnd使用了很多底层的php函数,所有最新的驱动都包含在内,编译的时候不需要再额外关联其他的库。所以编译php的时候不需要先装mysql,也不需要关心mysql版本。编译极大的简化。
并且mysqlnd的性能有很好的改善,也修复了一些原有bug,比如
- improved persistent connections
- mysqli_fetch_all()
- performance statistics call: mysqli_get_cache_stats(), mysqli_get_client_stats(), mysqli_get_connection_stats()
评论:
你好,阅读了你关于 google checksum的文章,想跟你请教一些问题。我编译了你公布的算法代码,但是产生的checksum与google的不一致,无法通过google验证。期待你的回复,谢谢!:)
by: 文件 | October 21, 2007 11:35 PM
I like it and the background and colors make it easy to readl
by: Hannes | June 14, 2008 12:08 PM
Hello people! Nice site!u
by: Dan | June 29, 2008 9:51 AM