Over three years ago, I noticed that there was no STATUS counter for COM_PING commands – something that is useful for ensuring proper configuration of JDBC connection pools. Mark Leith even provided a patch, but it’s never been incorporated. With the advances PERFORMANCE_SCHEMA makes in MySQL 5.6, that’s OK – a STATUS counter becomes somewhat redundant:
mysql> SELECT SUM(count_star) as pings
-> FROM events_statements_summary_global_by_event_name
-> WHERE event_name = 'statement/com/Ping';
+-------+
| pings |
+-------+
| 12 |
+-------+
1 row in set (0.02 sec)
Not only does PERFORMANCE_SCHEMA provide capabilities which
mirror the STATUS counters, it really goes well beyond what’s
capable there. A global counter is interesting, but …