MariaDB [test]> flush user_statistics, client_statistics;
MariaDB [test]> select a.empty_queries as user_empty, b.empty_queries as client_empty from information_schema.user_statistics a, information_schema.client_statistics b where a.user = 'root' and b.client= 'localhost';
+------------+--------------+
| user_empty | client_empty |
+------------+--------------+
| 0 | 0 |
+------------+--------------+
MariaDB [test]> select * from mysql.proc;
Empty set (0.00 sec)
MariaDB [test]> select a.empty_queries as user_empty, b.empty_queries as client_empty from information_schema.user_statistics a, information_schema.client_statistics b where a.user = 'root' and b.client= 'localhost';
+------------+--------------+
| user_empty | client_empty |
+------------+--------------+
| 1 | 1 |
+------------+--------------+
MariaDB [test]> ;
ERROR: No query specified
MariaDB [test]> select a.empty_queries as user_empty, b.empty_queries as client_empty from information_schema.user_statistics a, information_schema.client_statistics b where a.user = 'root' and b.client= 'localhost';
+------------+--------------+
| user_empty | client_empty |
+------------+--------------+
| 1 | 1 |
+------------+--------------+
MariaDB [test]> select * from mysql.proc;
Empty set (0.00 sec)
MariaDB [test]> select a.empty_queries as user_empty, b.empty_queries as client_empty from information_schema.user_statistics a, information_schema.client_statistics b where a.user = 'root' and b.client= 'localhost';
+------------+--------------+
| user_empty | client_empty |
+------------+--------------+
| 2 | 2 |
+------------+--------------+
It might be that I am wrong (CLIENT_STATISTICS description is RIGHT and USER_STATISTICS is wrong)
there is EMPTY_QUERY and empty_queries, and they are different.