SET @old_userstat= @@global.userstat;
SET @old_thread_statistics= @@global.thread_statistics;
SET GLOBAL userstat= ON;
SET GLOBAL thread_statistics= ON;
FLUSH USER_STATISTICS;
FLUSH CLIENT_STATISTICS;
FLUSH THREAD_STATISTICS;
SELECT TOTAL_CONNECTIONS, TOTAL_SSL_CONNECTIONS FROM
INFORMATION_SCHEMA.USER_STATISTICS ORDER BY USER;
TOTAL_CONNECTIONS	TOTAL_SSL_CONNECTIONS
1	0
2	1
2	1
2	1
SELECT TOTAL_CONNECTIONS, TOTAL_SSL_CONNECTIONS FROM
INFORMATION_SCHEMA.CLIENT_STATISTICS;
TOTAL_CONNECTIONS	TOTAL_SSL_CONNECTIONS
7	3
SELECT TOTAL_CONNECTIONS, TOTAL_SSL_CONNECTIONS FROM
INFORMATION_SCHEMA.THREAD_STATISTICS ORDER BY THREAD_ID;
TOTAL_CONNECTIONS	TOTAL_SSL_CONNECTIONS
1	0
1	1
1	0
1	1
1	0
1	1
1	0
