Oracle 5.0 Reference Manual page 2818

Table of Contents

Advertisement

and is accessing fields f1, f2 and f3. Therefore, mysqlnd_memcache
will intercept it and route it via memcache.
*/
$result = $mysqli->query("SELECT f1, f2, f3 FROM test WHERE id = 1");
while ($row = $result->fetch_row()) {
print_r($row);
}
/*
This is a query which queries table test but using f1 in the WHERE clause.
Therefore, mysqlnd_memcache can't intercept it. This will be executed
using the MySQL protocol
*/
$mysqli->query("SELECT id FROM test WHERE f1 = 'Lady'");
while ($row = $result->fetch_row()) {
print_r($row);
}
?>
The above example will output:
array(
[f1] => Hello
[f2] => World
[f3] => !
)
array(
[id] => 2
)
20.7.10.5. Installing/Configuring
Copyright 1997-2012 the PHP Documentation Group. [2230]
20.7.10.5.1. Requirements
Copyright 1997-2012 the PHP Documentation Group. [2230]
PHP: this extension requires PHP 5.4+, version PHP 5.4.4 or never. The required PHP extensions are
PCRE
(enabled by default), and the
The
mysqlnd_memcache
MySQL extensions (mysqli, mysql, PDO_MYSQL). The PHP MySQL extension must be configured
with
mysqlnd
For accessing
InnoDB Memcache Daemon Plugin enabled.
For accessing
newer with the NDB Memcache API nodes enabled.
20.7.10.5.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
of PECL
extensions. Additional information such as new releases, downloads, source files,
maintainer information, and a CHANGELOG, can be located here:
mysqlnd_memcache
Mysqlnd Memcache plugin (mysqlnd_memcache)
Memcache plugin supports all PHP applications and all available PHP
support.
tables, this PHP extension requires
InnoDB
MySQL Cluster NDB
memcached
extension version 2.0.x.
tables, this PHP extension requires
2798
MySQL Server 5.6.6
MySQL Cluster 7.2
http://pecl.php.net/package/
or newer with the
or
Installation

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents