跳到主要内容
版本:latest

GetRunStatus

获取 MySQL 服务器的运行状态变量(SHOW GLOBAL STATUS 结果)。

  • 路由POST /database
  • actionGetRunStatus

输入参数

参数名称必选类型描述
actionString固定值 GetRunStatus

输出参数

返回 MySQL 状态变量键值对,包含连接数、查询数、流量等数百个指标。

常见参数描述
Connections总连接次数
UptimeMySQL 运行时间(秒)
Bytes_received/sent收发字节数
Com_select/insert/update/deleteCRUD 操作计数
Slow_queries慢查询数
Threads_connected当前连接数

示例

{
"Aborted_clients": "33",
"Bytes_received": "17167",
"Bytes_sent": "39463",
"Connections": "50",
"Uptime": "3600",
"Threads_connected": "2"
}