1mysql_stat(3)                 MariaDB Connector/C                mysql_stat(3)
2
3
4
5   Name
6       mysql_stat - Returns current server status
7
8   Synopsis
9              #include <mysql.h>
10
11              const char * mysql_stat(MYSQL * mysql);
12
13   Description
14       mysql_stat()  returns  a  string with the current server status for up‐
15       time, threads, queries, open tables, flush tables and queries per  sec‐
16       ond.
17
18   Parameter
19       • mysql   -   a   mysql  handle,  which  was  previously  allocated  by
20         mysql_init(3) and connected byy mysql_real_connect(3).
21
22   Notes
23       For a complete list of other status variables,  you  have  to  use  the
24       [show-status()](SHOW STATUS]] SQL command.
25
26   Return value
27       Returns a string representing current server status.
28
29   See also
30       • mysql_get_server_info() (mysql_get_server_info)
31
32
33
34Version 3.2.2                                                    mysql_stat(3)
Impressum