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 + + + +