mysql.innodb_table_stats

You are viewing an old version of this article. View the current version here.

The mysql.innodb_table_stats table contains the following fields:

FieldTypeNullKeyDefaultDescription
database_namevarchar(64)NOPRINULL
table_namevarchar(64)NOPRINULL
last_updatetimestampNOcurrent_timestamp()
n_rowsbigint(20) unsignedNONULL
clustered_index_sizebigint(20) unsignedNONULL
sum_of_other_index_sizesbigint(20) unsignedNONULL

Example

SELECT * FROM mysql.innodb_table_stats\G
*************************** 1. row ***************************
           database_name: mysql
              table_name: gtid_slave_pos
             last_update: 2017-08-19 20:38:34
                  n_rows: 0
    clustered_index_size: 1
sum_of_other_index_sizes: 0
*************************** 2. row ***************************
           database_name: test
              table_name: ft
             last_update: 2017-09-15 12:58:39
                  n_rows: 0
    clustered_index_size: 1
sum_of_other_index_sizes: 2
...

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.