mysql_stat — returns system status

const char * mysql_stat(MYSQL * mysql);

mysql_stat() returns the current server status.

Parameters

mysql

A mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().

Return value

Returns a string with the status for uptime, threads, queries, open tables, flush tables and queries per second.

[Note]

For a complete list of other status variables, you have to use the SHOW STATUS SQL command

See also

mysql_get_server_info()