Chapter 6 MySQL Native Driver

Table of Contents

6.1 Overview
6.2 Installation
6.3 Runtime Configuration
6.4 Incompatibilities
6.5 Persistent Connections
6.6 Statistics
6.7 Notes
6.8 Memory management
6.9 MySQL Native Driver Plugin API
6.9.1 A comparison of mysqlnd plugins with MySQL Proxy
6.9.2 Obtaining the mysqlnd plugin API
6.9.3 MySQL Native Driver Plugin Architecture
6.9.4 The mysqlnd plugin API
6.9.5 Getting started building a mysqlnd plugin

Copyright 1997-2018 the PHP Documentation Group.

MySQL Native Driver is a replacement for the MySQL Client Library (libmysqlclient). MySQL Native Driver is part of the official PHP sources as of PHP 5.3.0.

The MySQL database extensions MySQL extension, mysqli and PDO MYSQL all communicate with the MySQL server. In the past, this was done by the extension using the services provided by the MySQL Client Library. The extensions were compiled against the MySQL Client Library in order to use its client-server protocol.

With MySQL Native Driver there is now an alternative, as the MySQL database extensions can be compiled to use MySQL Native Driver instead of the MySQL Client Library.

MySQL Native Driver is written in C as a PHP extension.