<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/set.mysqlinfo.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'book.mysqlnd.php',
    1 => 'Mysqlnd',
    2 => 'MySQL Native Driver',
  ),
  'up' => 
  array (
    0 => 'set.mysqlinfo.php',
    1 => 'MySQL',
  ),
  'prev' => 
  array (
    0 => 'function.mysql-unbuffered-query.php',
    1 => 'mysql_unbuffered_query',
  ),
  'next' => 
  array (
    0 => 'mysqlnd.overview.php',
    1 => 'Overview',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysqlnd/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.mysqlnd.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.mysqlnd" class="book">
 

 <h1 class="title">MySQL Native Driver</h1>

 



 <div id="intro.mysqlnd" class="preface">
  <h1 class="title">Introduction</h1>
  <p class="simpara">
   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.
  </p>
  <p class="simpara">
   The MySQL database extensions MySQL extension,
   <code class="literal">mysqli</code> 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.
  </p>
  <p class="simpara">
   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.
  </p>
  <p class="simpara">
   MySQL Native Driver is written in C as a PHP extension.
  </p>
 </div>
















































<ul class="chunklist chunklist_book"><li><a href="mysqlnd.overview.php">Overview</a></li><li><a href="mysqlnd.install.php">Installation</a></li><li><a href="mysqlnd.config.php">Runtime Configuration</a></li><li><a href="mysqlnd.incompatibilities.php">Incompatibilities</a></li><li><a href="mysqlnd.persist.php">Persistent Connections</a></li><li><a href="mysqlnd.stats.php">Statistics</a></li><li><a href="mysqlnd.notes.php">Notes</a></li><li><a href="mysqlnd.memory.php">Memory management</a></li><li><a href="mysqlnd.plugin.php">MySQL Native Driver Plugin API</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="mysqlnd.plugin.mysql-proxy.php">A comparison of mysqlnd plugins with MySQL Proxy</a></li><li><a href="mysqlnd.plugin.obtaining.php">Obtaining the mysqlnd plugin API</a></li><li><a href="mysqlnd.plugin.architecture.php">MySQL Native Driver Plugin Architecture</a></li><li><a href="mysqlnd.plugin.api.php">The mysqlnd plugin API</a></li><li><a href="mysqlnd.plugin.developing.php">Getting started building a mysqlnd plugin</a></li></ul></li></ul></div><?php manual_footer($setup); ?>