mysql_stat
mysql_stat returns a status string from the MariaDB server covering uptime, active threads, query count, open tables, and queries per second.
Syntax
char * mysql_stat(MYSQL * mysql);Parameter
mysql- a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
Description
mysql_stat() returns a string with the current server status for uptime, threads, queries, open tables, flush tables and queries per second.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

