downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

MysqlndUhConnection::getServerVersion> <MysqlndUhConnection::getServerInformation
[edit] Last updated: Fri, 24 May 2013

view this page in

MysqlndUhConnection::getServerStatistics

(PECL mysqlnd-uh >= 1.0.0-alpha)

MysqlndUhConnection::getServerStatisticsRécupère le statut du système courant

Description

public string MysqlndUhConnection::getServerStatistics ( mysqlnd_connection $connection )

Récupère le statut du système courant.

Liste de paramètres

connection

Le gestionnaire de connexion Mysqlnd. Ne pas modifier !

Valeurs de retour

Le message décrivant le statut du système.

Exemples

Exemple #1 Exemple avec MysqlndUhConnection::getServerStatistics()

<?php
class proxy extends MysqlndUhConnection {
 public function 
getServerStatistics($res) {
  
printf("%s(%s)\n"__METHOD__var_export(func_get_args(), true));
  
$ret parent::getServerStatistics($res);
  
printf("%s retourne %s\n"__METHOD__var_export($rettrue));
  return 
$ret;
 }
}
mysqlnd_uh_set_connection_proxy(new proxy());

$mysqli = new mysqli("localhost""root""""test");
var_dump(mysqli_stat($mysqli));
?>

L'exemple ci-dessus va afficher :

proxy::getServerStatistics(array (
  0 => NULL,
))
proxy::getServerStatistics retourne 'Uptime: 2059995  Threads: 1  Questions: 126157  Slow queries: 0  Opens: 6377  Flush tables: 1  Open tables: 18  Queries per second avg: 0.61'
string(140) "Uptime: 2059995  Threads: 1  Questions: 126157  Slow queries: 0  Opens: 6377  Flush tables: 1  Open tables: 18  Queries per second avg: 0.61"

Voir aussi



add a note add a note User Contributed Notes MysqlndUhConnection::getServerStatistics - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites