1 TRUNCATE
TABLE test_innodb_stats;
5 ANALYZE
TABLE test_innodb_stats;
12 FROM mysql.innodb_index_stats
14 database_name = DATABASE() AND
16 index_name = 'a_key' AND
17 stat_name IN ('n_diff_pfx01', 'n_diff_pfx02', 'n_leaf_pages', '
size')
20 # provoke reading from persistent storage upon next table access (the SELECT
21 # from information_schema.statistics below)
22 FLUSH
TABLE test_innodb_stats;
24 # see what we are going to read
25 query_vertical SELECT * FROM information_schema.statistics