Mysqlnd replication and load balancing plugin (
mysqlnd_ms
)
2601
20.7.6.6. Installing/Configuring
Copyright 1997-2012 the PHP Documentation Group. [2230]
20.7.6.6.1. Requirements
Copyright 1997-2012 the PHP Documentation Group. [2230]
PHP 5.3.6
or newer. Some advanced functionality requires
PHP 5.4.0
or newer.
The
mysqlnd_ms
replication and load balancing plugin supports all PHP applications and all available
PHP MySQL extensions (
mysqli
,
mysql
,
PDO_MYSQL
). The PHP MySQL extension must be
configured to use
mysqlnd
in order to be able to use the
mysqlnd_ms
plugin for
mysqlnd
.
20.7.6.6.2. Installation
Copyright 1997-2012 the PHP Documentation Group. [2230]
This
PECL
extension is not bundled with PHP.
Information for installing this PECL extension may be found in the manual chapter titled
Installation of
PECL extensions
. Additional information such as new releases, downloads, source files, maintainer
information, and a CHANGELOG, can be located here:
http://pecl.php.net/package/mysqlnd_ms
A DLL for this PECL extension is currently unavailable. See also the
building on Windows
section.
20.7.6.6.3. Runtime Configuration
Copyright 1997-2012 the PHP Documentation Group. [2230]
The behaviour of these functions is affected by settings in
php.ini
.
Table 20.72. Mysqlnd_ms Configure Options
Name
Default
Changeable
Changelog
mysqlnd_ms.enable
0
PHP_INI_SYSTEM
mysqlnd_ms.force_config_usage
0
PHP_INI_SYSTEM
mysqlnd_ms.ini_file
""
PHP_INI_SYSTEM
mysqlnd_ms.config_file
""
PHP_INI_SYSTEM
mysqlnd_ms.collect_statistics
0
PHP_INI_SYSTEM
mysqlnd_ms.multi_master0
PHP_INI_SYSTEM
mysqlnd_ms.disable_rw_split
0
PHP_INI_SYSTEM
Here's a short explanation of the configuration directives.
mysqlnd_ms.enable
integer
Enables or disables the plugin. If disabled, the extension will not
plug into
mysqlnd
to proxy internal
mysqlnd
C API calls.
mysqlnd_ms.force_config_usage
integer
If enabled, the plugin checks if the host (server) parameters value of
any MySQL connection attempt, matches a section name from the
plugin configuration file. If not, the connection attempt is blocked.
This setting is not only useful to restrict PHP to certain servers
but also to debug configuration file problems. The configuration
file validity is checked at two different stages. The first check is
performed when PHP begins to handle a web request. At this point
the plugin reads and decodes the configuration file. Errors thrown
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 ...