MySQL and PHP
Copyright 1997-2021 the PHP Documentation Group.
Note: [DIR]
is the path to the MySQL client
library files (headers and libraries),
which can be downloaded from
MySQL.
Table 6.1 ext/mysql compile time support matrix
PHP Version | Default | Configure Options: mysqlnd | Configure Options: libmysqlclient | Changelog |
---|---|---|---|---|
4.x.x | libmysqlclient | Not Available | --without-mysql to disable | MySQL enabled by default, MySQL client libraries are bundled |
5.0.x, 5.1.x, 5.2.x | libmysqlclient | Not Available | --with-mysql=[DIR] | MySQL is no longer enabled by default, and the MySQL client libraries are no longer bundled |
5.3.x | libmysqlclient | --with-mysql=mysqlnd | --with-mysql=[DIR] | mysqlnd is now available |
5.4.x | mysqlnd | --with-mysql | --with-mysql=[DIR] | mysqlnd is now the default |