The mysqlnd replication and load balancing plugin (
adds easy to use MySQL replication support to all PHP MySQL extensions that use
As of version PHP 5.3.3 the MySQL native driver for PHP
features an internal plugin C API. C plugins, such as the replication and
load balancing plugin, can extend the functionality of
The MySQL native driver for PHP is a C library that ships together with PHP as of PHP 5.3.0. It serves as a drop-in replacement for the MySQL Client Library (libmysqlclient). Using mysqlnd has several advantages: no extra downloads are required because it's bundled with PHP, it's under the PHP license, there is lower memory consumption in certain cases, and it contains new functionality such as asynchronous queries.
Mysqlnd plugins like
mysqlnd_ms operate, for the most part,
transparently from a user perspective. The replication and load balancing
plugin supports all PHP applications, and all MySQL PHP extensions.
It does not change existing APIs. Therefore, it can easily be used with
existing PHP applications.