From 035fb21bde3cf0c1d849210fca498d53324d1a0b Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 26 Jan 2005 19:14:34 +0000 Subject: [PATCH] Reworked docs using the new doc style. Added an alternate SHOW STATUS example, returnvalues, used &example.outputs.similar;, and closed bug #22005. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@178317 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysql/functions/mysql-stat.xml | 138 ++++++++++++++++------- 1 file changed, 95 insertions(+), 43 deletions(-) diff --git a/reference/mysql/functions/mysql-stat.xml b/reference/mysql/functions/mysql-stat.xml index 198281f752..fd337d9c46 100644 --- a/reference/mysql/functions/mysql-stat.xml +++ b/reference/mysql/functions/mysql-stat.xml @@ -1,44 +1,61 @@ - + - - - mysql_stat - Get current system status - - - Description - - stringmysql_stat - resourcelink_identifier - - - mysql_stat returns the current server status. - - - - mysql_stat currently only returns status for uptime, - threads, queries, open tables, flush tables and queries per second. For a - complete list of other status variables you have to use the SHOW STATUS - SQL command. - - - - - <function>mysql_stat</function> example - + + + mysql_stat + Get current system status + + + &reftitle.description; + + stringmysql_stat + resourcelink_identifier + + + mysql_stat returns the current server status. + + + + &reftitle.parameters; + + + + link_identifier + + + Link to the MySQL connection. + + + + + + + + &reftitle.returnvalues; + + Returns a string with the status for uptime, threads, queries, open tables, + flush tables and queries per second. For a complete list of other status + variables, you have to use the SHOW STATUS SQL command. + If link_identifier is invalid, &null; is returned. + + + + &reftitle.examples; + + + <function>mysql_stat</function> example + ]]> - - - The above example would produce the following output: - - + + &example.outputs.similar; + Queries per second avg: 245.595 ) ]]> - - - - - See also - mysql_get_server_info and - mysql_list_processes. - - - + + + + + + Alternative <function>mysql_stat</function> example + + +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.seealso; + + + mysql_get_server_info + mysql_list_processes + + + +