Documentation Home
MySQL PHP API
Download this Manual
PDF (US Ltr) - 2.8Mb
PDF (A4) - 2.8Mb
EPUB - 456.9Kb
HTML Download (TGZ) - 396.1Kb
HTML Download (Zip) - 409.9Kb


MySQL PHP API  /  Mysqlnd replication and load balancing plugin

Chapter 7 Mysqlnd replication and load balancing plugin

Table of Contents     [+/-]

7.1 Key Features
7.2 Limitations
7.3 On the name
7.4 Quickstart and Examples     [+/-]
7.5 Concepts     [+/-]
7.6 Installing/Configuring     [+/-]
7.7 Predefined Constants
7.8 Mysqlnd_ms Functions     [+/-]
7.9 Change History     [+/-]

Copyright 1997-2014 the PHP Documentation Group.

The mysqlnd replication and load balancing plugin (mysqlnd_ms) adds easy to use MySQL replication support to all PHP MySQL extensions that use mysqlnd.

As of version PHP 5.3.3 the MySQL native driver for PHP (mysqlnd) features an internal plugin C API. C plugins, such as the replication and load balancing plugin, can extend the functionality of mysqlnd.

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.


User Comments
Sign Up Login You must be logged in to post a comment.