September 2014
Intermediate to advanced
298 pages
6h 13m
English
Since MariaDB 5.2, a patch from Google, Percona, and other companies has been implemented, which permits you to view the user statistics, client statistics, index statistics (and usage), and table statistics.
You can activate it on the fly using the following command:
MariaDB [(none)]> SET GLOBAL userstat=1;
Alternatively, you can make it persistent in the MariaDB configuration (my.cnf) using the following code:
[mysqld] userstat = 1
You now have access to the new FLUSH and SHOW commands:
MariaDB [(none)]> FLUSH TABLE_STATISTICS MariaDB [(none)]> FLUSH INDEX_STATISTICS MariaDB [(none)]> FLUSH USER_STATISTICS MariaDB [(none)]> FLUSH CLIENT_STATISTICS MariaDB [(none)]> SHOW CLIENT_STATISTICS MariaDB [(none)]> SHOW USER_STATISTICS
Read now
Unlock full access