SHOW CLIENT_STATISTICS
View statistics on client connections. This statement displays metrics like bytes sent/received and busy time for connected clients.
Syntax
SHOW CLIENT_STATISTICSDescription
The SHOW CLIENT_STATISTICS statement has effectively been replaced by the generic SHOW TABLE STATISTICS statement. The information_schema.CLIENT_STATISTICS table holds statistics about client connections.
The SHOW CLIENT_STATISTICS statement is part of the User Statistics feature. The information_schema.CLIENT_STATISTICS table holds statistics about client connections.
The userstat system variable must be set to 1 to activate this feature. See the User Statistics and information_schema.CLIENT_STATISTICS articles for more information.
Example
SHOW CLIENT_STATISTICS\G *************************** 1. row *************************** Client: localhost Total_connections: 35 Concurrent_connections: 0 Connected_time: 708 Busy_time: 2.5557979999999985 Cpu_time: 0.04123740000000002 Bytes_received: 3883 Bytes_sent: 21595 Binlog_bytes_written: 0 Rows_read: 18 Rows_sent: 115 Rows_deleted: 0 Rows_inserted: 0 Rows_updated: 0 Select_commands: 70 Update_commands: 0 Other_commands: 0 Commit_transactions: 1 Rollback_transactions: 0 Denied_connections: 0 Lost_connections: 0 Access_denied: 0 Empty_queries: 35This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?
.png?alt=media&token=7e7f4c73-9972-4e67-9a1a-74dc18591022&width=260&dpr=4&quality=100&sign=760f8d93&sv=2)
.png?alt=media&token=ee5a45b3-d05b-4bb5-97d0-0f25c5eeb110&width=260&dpr=4&quality=100&sign=12bc3702&sv=2)