Installation
Changelog
Table 20.25. Changelog
Version | Description |
---|---|
5.3.0 | The MariaDB Native Driver was added, with support for all MariaDB extensions (i.e., mysql, mysqli and PDO_MYSQL). Passing in mysqlnd to the appropriate configure switch enables this support.
|
5.4.0 | The MariaDB Native Driver is now the default for all MariaDB extensions (i.e., mysql, mysqli and PDO_MYSQL). Passing in mysqlnd to configure is now optional. |
Installation on Unix
The MariaDB database extensions must be configured to use the MariaDB Client Library. In order to use the MariaDB Native Driver, PHP needs to be built specifying that the MariaDB database extensions are compiled with MariaDB Native Driver support. This is done through configuration options prior to building the PHP source code.
For example, to build the MariaDB extension, mysqli
and PDO MYSQL using the MariaDB Native Driver, the following command would be given:
./configure --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ [other options]
Installation on Windows
In the official PHP Windows distributions from 5.3 onwards, MariaDB Native Driver is enabled by default, so no additional configuration is required to use it. All MariaDB database extensions will use MariaDB Native Driver in this case.