REQUIREMENTS

The new MySQL native driver for PHP (mysqlnd) requires:

 - PHP 6
 - MySQL 4.1 or newer
 

BUILDING ON UNIX

1) Get a copy of PHP 6

For example, you can check out PHP 6, the current development 
version of PHP, from the CVS repository on php.net. 
See http://www.php.net/anoncvs.php for detailed instructions.

me@myhost:~> cvs -d :pserver:cvsread@cvs.php.net:/repository checkout php6

2) Copy mysqlnd into the PHP 6 source tree

Remove the ext/mysqli directory from your PHP directory, 
for example:

me@myhost:~> cd php6
me@myhost:~/php6> rm -rf ext/mysqli

Copy mysqlnd into your PHP directory, for 
example:

me@myhost:~/php6> cp -R ~/php-mysqlnd/ext/mysqli ext/mysqli

3) Run buildconf

me@myhost:~/php6> ./buildconf --force

4) Configure PHP with mysqlnd support

To configure PHP with ext/mysqli using mysqlnd, you
add ext/mysqli to your PHP using '--with-mysqli' and tell
it not to link against the MySQL client library, but to 
use mysqlnd by adding '--enable-mysqlnd'.

me@myhost:~/php6> ./configure --with-mysqli --enable-mysqlnd

Note that you must not specify the path to the MySQL
utility mysql_config. 

5) Build PHP

me@myhost:~/php6> make clean; make; make install
