7.4 Quickstart and Examples

7.4.1 Setup
7.4.2 Running statements
7.4.3 Connection state
7.4.4 SQL Hints
7.4.5 Local transactions
7.4.6 XA/Distributed Transactions
7.4.7 Service level and consistency
7.4.8 Global transaction IDs
7.4.9 Cache integration
7.4.10 Failover
7.4.11 Partitioning and Sharding
7.4.12 MySQL Fabric

Copyright 1997-2014 the PHP Documentation Group.

The mysqlnd replication load balancing plugin is easy to use. This quickstart will demo typical use-cases, and provide practical advice on getting started.

It is strongly recommended to read the reference sections in addition to the quickstart. The quickstart tries to avoid discussing theoretical concepts and limitations. Instead, it will link to the reference sections. It is safe to begin with the quickstart. However, before using the plugin in mission critical environments we urge you to read additionally the background information from the reference sections.

The focus is on using PECL mysqlnd_ms for work with an asynchronous MySQL cluster, namely MySQL replication. Generally speaking an asynchronous cluster is more difficult to use than a synchronous one. Thus, users of, for example, MySQL Cluster will find more information than needed.