mysql_stat
Get current system status
&reftitle.description;
stringmysql_stat
resourcelink_identifier
mysql_stat returns the current server status.
&reftitle.parameters;
&mysql.linkid.description;
&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;
mysql_stat example
]]>
&example.outputs.similar;
Uptime: 5380
[1] => Threads: 2
[2] => Questions: 1321299
[3] => Slow queries: 0
[4] => Opens: 26
[5] => Flush tables: 1
[6] => Open tables: 17
[7] => Queries per second avg: 245.595
)
]]>
Alternative mysql_stat example
]]>
&example.outputs.similar;
&reftitle.seealso;
mysql_get_server_info
mysql_list_processes