Oracle 5.0 Reference Manual page 2659

Table of Contents

Advertisement

20.7.6.8.2.
mysqlnd_ms_get_last_used_connection
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqlnd_ms_get_last_used_connection
Returns an array which describes the last used connection
Description
array mysqlnd_ms_get_last_used_connection(
mixed connection);
Returns an array which describes the last used connection from the plugins connection pool currently
pointed to by the user connection handle. If using the plugin, a user connection handle represents a
pool of database connections. It is not possible to tell from the user connection handles properties to
which database server from the pool the user connection handle points.
The function can be used to debug or monitor PECL mysqlnd_ms.
Parameters
connection
Return Values
on error. Otherwise, an array which describes the connection used to execute the last
FALSE
statement on.
Array which describes the connection.
Property Description
Connection scheme. Either
scheme
host:socket. If you want to distinguish connections from each
other use a combination of
Neither
two connections from each other. Two servers may assign the same
thread_id
pool may have the same thread_id. Also, do not rely on uniqueness
of
server instance for two distinct logical roles and add it multiple times to
the pool. This hack is used, for example, in the test suite.
Database server host used with the connection. The host is only set
host
with TCP/IP connections. It is empty with Unix domain or Windows
named pipe connections,
A character string representing the server hostname and the
host_info
connection type.
Database server port used with the connection.
port
Unix domain socket or Windows named pipe used with the connection.
socket_or_pipe
The value is empty for TCP/IP connections.
Connection thread id.
thread_id
Info message obtained from the MySQL C API function mysql_info().
last_message
Please, see
Error code.
errno
Error message.
error
Error SQLstate code.
sqlstate
Notes
Mysqlnd replication and load balancing plugin (mysqlnd_ms)
A MySQL connection handle obtained from any of the connect
functions of the mysqli,
nor
scheme
thread_id
to two different connections. Thus, connections in the
in a pool. Your QA engineers may use the same MySQL
scheme
mysqli_info
mysql
or
tcp://host:port
and
scheme
thread_id
alone are sufficient to distinguish
for a description.
2639
or
PDO_MYSQL
extensions.
Version
Since 1.1.0.
unix://
as a unique key.
Since 1.1.0.
Since 1.1.2.
Since 1.1.0.
Since 1.1.2.
Since 1.1.0.
Since 1.1.0.
Since 1.1.0.
Since 1.1.0.
Since 1.1.0.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents