MySQL Native Driver (
Mysqlnd
)
2544
Statistic Scope
Description
Notes
The default buffer size is 2048 bytes
in PHP 5.3.0. In future versions
the default will be 4kB or larger.
The default can changed either
through the
php.ini
setting
mysqlnd.net_cmd_buffer_size
or using
mysqli_options(MYSQLI_OPT_NET_CMD_BUFFER_SIZE,
int size)
.
It is recommended to set the buffer size
to no less than 4096 bytes because
mysqlnd also uses it when reading
certain communication packet from
MySQL. In PHP 5.3.0, mysqlnd will
not grow the buffer if MySQL sends a
packet that is larger than the current
size of the buffer. As a consequence
mysqlnd is unable to decode the
packet and the client application
will get an error. There are only two
situations when the packet can be
larger than the 2048 bytes default of
mysqlnd.net_cmd_buffer_size
in PHP 5.3.0: the packet transports
a very long error message or
the packet holds column meta
data from
COM_LIST_FIELD
(
mysql_list_fields
) and the meta
data comes from a string column with a
very long default value (>1900 bytes).
No bug report on this exists - it should
happen rarely.
As of PHP 5.3.2 mysqlnd does not allow
setting buffers smaller than 4096 bytes.
connection_reused
20.7.5.6. Notes
Copyright 1997-2012 the PHP Documentation Group. [2230]
This section provides a collection of miscellaneous notes on MySQL Native Driver usage.
• Using
mysqlnd
means using PHP streams for underlying connectivity. For
mysqlnd
, the PHP
streams documentation (
http://www.php.net/manual/en/book.stream
) should be consulted on such
details as timeout settings, not the documentation for the MySQL Client Library.
20.7.5.7. MySQL Native Driver Plugin API
Copyright 1997-2012 the PHP Documentation Group. [2230]
The MySQL Native Driver Plugin API is a feature of MySQL Native Driver, or
mysqlnd
.
Mysqlnd
plugins operate in the layer between PHP applications and the MySQL server. This is comparable to
MySQL Proxy. MySQL Proxy operates on a layer between any MySQL client application, for example,
a PHP application and, the MySQL server.
Mysqlnd
plugins can undertake typical MySQL Proxy tasks
such as load balancing, monitoring and performance optimizations. Due to the different architecture
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...