24.4 INFORMATION_SCHEMA InnoDB Tables

This section provides table definitions for 'INFORMATION_SCHEMA' 'InnoDB' tables. For related information and examples, see *note innodb-information-schema::.

'INFORMATION_SCHEMA' 'InnoDB' tables can be used to monitor ongoing 'InnoDB' activity, to detect inefficiencies before they turn into issues, or to troubleshoot performance and capacity issues. As your database becomes bigger and busier, running up against the limits of your hardware capacity, you monitor and tune these aspects to keep the database running smoothly.

 File: manual.info.tmp, Node: information-schema-innodb-table-reference, Next: information-schema-innodb-buffer-page-table, Prev: innodb-information-schema-tables, Up: innodb-information-schema-tables

24.4.1 INFORMATION_SCHEMA InnoDB Table Reference

The following table summarizes 'INFORMATION_SCHEMA' InnoDB tables. For greater detail, see the individual table descriptions.

INFORMATION_SCHEMA InnoDB Tables

Table Name Description Deprecated

*note 'INNODB_BUFFER_PAGE': information-schema-innodb-buffer-page-table.

Pages in InnoDB buffer pool

*note 'INNODB_BUFFER_PAGE_LRU': information-schema-innodb-buffer-page-lru-table.

LRU ordering of pages in InnoDB buffer pool

*note 'INNODB_BUFFER_POOL_STATS': information-schema-innodb-buffer-pool-stats-table.

InnoDB buffer pool statistics

*note 'INNODB_CMP': information-schema-innodb-cmp-table.

Status for operations related to compressed InnoDB tables

*note 'INNODB_CMP_PER_INDEX': information-schema-innodb-cmp-per-index-table.

Status for operations related to compressed InnoDB tables and indexes

*note 'INNODB_CMP_PER_INDEX_RESET': information-schema-innodb-cmp-per-index-table.

Status for operations related to compressed InnoDB tables and indexes

*note 'INNODB_CMP_RESET': information-schema-innodb-cmp-table.

Status for operations related to compressed InnoDB tables

*note 'INNODB_CMPMEM': information-schema-innodb-cmpmem-table.

Status for compressed pages within InnoDB buffer pool

*note 'INNODB_CMPMEM_RESET': information-schema-innodb-cmpmem-table.

Status for compressed pages within InnoDB buffer pool

*note 'INNODB_FT_BEING_DELETED': information-schema-innodb-ft-being-deleted-table.

Snapshot of INNODB_FT_DELETED table

*note 'INNODB_FT_CONFIG': information-schema-innodb-ft-config-table.

Metadata for InnoDB table FULLTEXT index and associated processing

*note 'INNODB_FT_DEFAULT_STOPWORD': information-schema-innodb-ft-default-stopword-table.

Default list of stopwords for InnoDB FULLTEXT indexes

*note 'INNODB_FT_DELETED': information-schema-innodb-ft-deleted-table.

Rows deleted from InnoDB table FULLTEXT index

*note 'INNODB_FT_INDEX_CACHE': information-schema-innodb-ft-index-cache-table.

Token information for newly inserted rows in InnoDB FULLTEXT index

*note 'INNODB_FT_INDEX_TABLE': information-schema-innodb-ft-index-table-table.

Inverted index information for processing text searches against InnoDB table FULLTEXT index

*note 'INNODB_LOCK_WAITS': information-schema-innodb-lock-waits-table.

InnoDB 5.7.14 transaction
lock-wait information

*note 'INNODB_LOCKS': information-schema-innodb-locks-table.

InnoDB 5.7.14 transaction lock
information

*note 'INNODB_METRICS': information-schema-innodb-metrics-table.

InnoDB performance information

*note 'INNODB_SYS_COLUMNS': information-schema-innodb-sys-columns-table.

Columns in each InnoDB table

*note 'INNODB_SYS_DATAFILES': information-schema-innodb-sys-datafiles-table.

Data file path information for InnoDB file-per-table and general tablespaces

*note 'INNODB_SYS_FIELDS': information-schema-innodb-sys-fields-table.

Key columns of InnoDB indexes

*note 'INNODB_SYS_FOREIGN': information-schema-innodb-sys-foreign-table.

InnoDB foreign-key metadata

*note 'INNODB_SYS_FOREIGN_COLS': information-schema-innodb-sys-foreign-cols-table.

InnoDB foreign-key column status information

*note 'INNODB_SYS_INDEXES': information-schema-innodb-sys-indexes-table.

InnoDB index metadata

*note 'INNODB_SYS_TABLES': information-schema-innodb-sys-tables-table.

InnoDB table metadata

*note 'INNODB_SYS_TABLESPACES': information-schema-innodb-sys-tablespaces-table.

InnoDB file-per-table, general, and undo tablespace metadata

*note 'INNODB_SYS_TABLESTATS': information-schema-innodb-sys-tablestats-table.

InnoDB table low-level status information

*note 'INNODB_SYS_VIRTUAL': information-schema-innodb-sys-virtual-table.

InnoDB virtual generated column metadata

*note 'INNODB_TEMP_TABLE_INFO': information-schema-innodb-temp-table-info-table.

Information about active user-created InnoDB temporary tables

*note 'INNODB_TRX': information-schema-innodb-trx-table.

Active InnoDB transaction information

 File: manual.info.tmp, Node: information-schema-innodb-buffer-page-table, Next: information-schema-innodb-buffer-page-lru-table, Prev: information-schema-innodb-table-reference, Up: innodb-information-schema-tables

24.4.2 The INFORMATION_SCHEMA INNODB_BUFFER_PAGE Table

The *note 'INNODB_BUFFER_PAGE': information-schema-innodb-buffer-page-table. table provides information about each page in the 'InnoDB' buffer pool.

For related usage information and examples, see *note innodb-information-schema-buffer-pool-tables::.

Warning:

Querying the *note 'INNODB_BUFFER_PAGE': information-schema-innodb-buffer-page-table. table can affect performance. Do not query this table on a production system unless you are aware of the performance impact and have determined it to be acceptable. To avoid impacting performance on a production system, reproduce the issue you want to investigate and query buffer pool statistics on a test instance.

The *note 'INNODB_BUFFER_PAGE': information-schema-innodb-buffer-page-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_BUFFER_PAGE LIMIT 1\G
 *************************** 1. row ***************************
             POOL_ID: 0
            BLOCK_ID: 0
               SPACE: 97
         PAGE_NUMBER: 2473
           PAGE_TYPE: INDEX
          FLUSH_TYPE: 1
           FIX_COUNT: 0
           IS_HASHED: YES
 NEWEST_MODIFICATION: 733855581
 OLDEST_MODIFICATION: 0
         ACCESS_TIME: 3378385672
          TABLE_NAME: `employees`.`salaries`
          INDEX_NAME: PRIMARY
      NUMBER_RECORDS: 468
           DATA_SIZE: 14976
     COMPRESSED_SIZE: 0
          PAGE_STATE: FILE_PAGE
              IO_FIX: IO_NONE
              IS_OLD: YES
     FREE_PAGE_CLOCK: 66

Notes

 File: manual.info.tmp, Node: information-schema-innodb-buffer-page-lru-table, Next: information-schema-innodb-buffer-pool-stats-table, Prev: information-schema-innodb-buffer-page-table, Up: innodb-information-schema-tables

24.4.3 The INFORMATION_SCHEMA INNODB_BUFFER_PAGE_LRU Table

The *note 'INNODB_BUFFER_PAGE_LRU': information-schema-innodb-buffer-page-lru-table. table provides information about the pages in the 'InnoDB' buffer pool; in particular, how they are ordered in the LRU list that determines which pages to evict from the buffer pool when it becomes full.

The note 'INNODB_BUFFER_PAGE_LRU': information-schema-innodb-buffer-page-lru-table. table has the same columns as the note 'INNODB_BUFFER_PAGE': information-schema-innodb-buffer-page-table. table, except that the *note 'INNODB_BUFFER_PAGE_LRU': information-schema-innodb-buffer-page-lru-table. table has 'LRU_POSITION' and 'COMPRESSED' columns instead of 'BLOCK_ID' and 'PAGE_STATE' columns.

For related usage information and examples, see *note innodb-information-schema-buffer-pool-tables::.

Warning:

Querying the *note 'INNODB_BUFFER_PAGE_LRU': information-schema-innodb-buffer-page-lru-table. table can affect performance. Do not query this table on a production system unless you are aware of the performance impact and have determined it to be acceptable. To avoid impacting performance on a production system, reproduce the issue you want to investigate and query buffer pool statistics on a test instance.

The *note 'INNODB_BUFFER_PAGE_LRU': information-schema-innodb-buffer-page-lru-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_BUFFER_PAGE_LRU LIMIT 1\G
 *************************** 1. row ***************************
             POOL_ID: 0
        LRU_POSITION: 0
               SPACE: 97
         PAGE_NUMBER: 1984
           PAGE_TYPE: INDEX
          FLUSH_TYPE: 1
           FIX_COUNT: 0
           IS_HASHED: YES
 NEWEST_MODIFICATION: 719490396
 OLDEST_MODIFICATION: 0
         ACCESS_TIME: 3378383796
          TABLE_NAME: `employees`.`salaries`
          INDEX_NAME: PRIMARY
      NUMBER_RECORDS: 468
           DATA_SIZE: 14976
     COMPRESSED_SIZE: 0
          COMPRESSED: NO
              IO_FIX: IO_NONE
              IS_OLD: YES
     FREE_PAGE_CLOCK: 0

Notes

 File: manual.info.tmp, Node: information-schema-innodb-buffer-pool-stats-table, Next: information-schema-innodb-cmp-table, Prev: information-schema-innodb-buffer-page-lru-table, Up: innodb-information-schema-tables

24.4.4 The INFORMATION_SCHEMA INNODB_BUFFER_POOL_STATS Table

The note 'INNODB_BUFFER_POOL_STATS': information-schema-innodb-buffer-pool-stats-table. table provides much of the same buffer pool information provided in note 'SHOW ENGINE INNODB STATUS': show-engine. output. Much of the same information may also be obtained using 'InnoDB' buffer pool *note server status variables: server-status-variables.

The idea of making pages in the buffer pool 'young' or 'not young' refers to transferring them between the sublists at the head and tail of the buffer pool data structure. Pages made 'young' take longer to age out of the buffer pool, while pages made 'not young' are moved much closer to the point of eviction.

For related usage information and examples, see *note innodb-information-schema-buffer-pool-tables::.

The *note 'INNODB_BUFFER_POOL_STATS': information-schema-innodb-buffer-pool-stats-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_BUFFER_POOL_STATS\G
 *************************** 1. row ***************************
                          POOL_ID: 0
                        POOL_SIZE: 8192
                     FREE_BUFFERS: 1
                   DATABASE_PAGES: 8085
               OLD_DATABASE_PAGES: 2964
          MODIFIED_DATABASE_PAGES: 0
               PENDING_DECOMPRESS: 0
                    PENDING_READS: 0
                PENDING_FLUSH_LRU: 0
               PENDING_FLUSH_LIST: 0
                 PAGES_MADE_YOUNG: 22821
             PAGES_NOT_MADE_YOUNG: 3544303
            PAGES_MADE_YOUNG_RATE: 357.62602199870594
        PAGES_MADE_NOT_YOUNG_RATE: 0
                NUMBER_PAGES_READ: 2389
             NUMBER_PAGES_CREATED: 12385
             NUMBER_PAGES_WRITTEN: 13111
                  PAGES_READ_RATE: 0
                PAGES_CREATE_RATE: 0
               PAGES_WRITTEN_RATE: 0
                 NUMBER_PAGES_GET: 33322210
                         HIT_RATE: 1000
     YOUNG_MAKE_PER_THOUSAND_GETS: 18
 NOT_YOUNG_MAKE_PER_THOUSAND_GETS: 0
          NUMBER_PAGES_READ_AHEAD: 2024
        NUMBER_READ_AHEAD_EVICTED: 0
                  READ_AHEAD_RATE: 0
          READ_AHEAD_EVICTED_RATE: 0
                     LRU_IO_TOTAL: 0
                   LRU_IO_CURRENT: 0
                 UNCOMPRESS_TOTAL: 0
               UNCOMPRESS_CURRENT: 0

Notes

 File: manual.info.tmp, Node: information-schema-innodb-cmp-table, Next: information-schema-innodb-cmpmem-table, Prev: information-schema-innodb-buffer-pool-stats-table, Up: innodb-information-schema-tables

24.4.5 The INFORMATION_SCHEMA INNODB_CMP and INNODB_CMP_RESET Tables

The note 'INNODB_CMP': information-schema-innodb-cmp-table. and note 'INNODB_CMP_RESET': information-schema-innodb-cmp-table. tables provide status information on operations related to compressed 'InnoDB' tables.

The note 'INNODB_CMP': information-schema-innodb-cmp-table. and note 'INNODB_CMP_RESET': information-schema-innodb-cmp-table. tables have these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_CMP\G
 *************************** 1. row ***************************
       page_size: 1024
    compress_ops: 0
 compress_ops_ok: 0
   compress_time: 0
  uncompress_ops: 0
 uncompress_time: 0
 *************************** 2. row ***************************
       page_size: 2048
    compress_ops: 0
 compress_ops_ok: 0
   compress_time: 0
  uncompress_ops: 0
 uncompress_time: 0
 *************************** 3. row ***************************
       page_size: 4096
    compress_ops: 0
 compress_ops_ok: 0
   compress_time: 0
  uncompress_ops: 0
 uncompress_time: 0
 *************************** 4. row ***************************
       page_size: 8192
    compress_ops: 86955
 compress_ops_ok: 81182
   compress_time: 27
  uncompress_ops: 26828
 uncompress_time: 5
 *************************** 5. row ***************************
       page_size: 16384
    compress_ops: 0
 compress_ops_ok: 0
   compress_time: 0
  uncompress_ops: 0
 uncompress_time: 0

Notes

 File: manual.info.tmp, Node: information-schema-innodb-cmpmem-table, Next: information-schema-innodb-cmp-per-index-table, Prev: information-schema-innodb-cmp-table, Up: innodb-information-schema-tables

24.4.6 The INFORMATION_SCHEMA INNODB_CMPMEM and INNODB_CMPMEM_RESET Tables

The note 'INNODB_CMPMEM': information-schema-innodb-cmpmem-table. and note 'INNODB_CMPMEM_RESET': information-schema-innodb-cmpmem-table. tables provide status information on compressed pages within the 'InnoDB' buffer pool.

The note 'INNODB_CMPMEM': information-schema-innodb-cmpmem-table. and note 'INNODB_CMPMEM_RESET': information-schema-innodb-cmpmem-table. tables have these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_CMPMEM\G
 *************************** 1. row ***************************
            page_size: 1024
 buffer_pool_instance: 0
           pages_used: 0
           pages_free: 0
       relocation_ops: 0
      relocation_time: 0
 *************************** 2. row ***************************
            page_size: 2048
 buffer_pool_instance: 0
           pages_used: 0
           pages_free: 0
       relocation_ops: 0
      relocation_time: 0
 *************************** 3. row ***************************
            page_size: 4096
 buffer_pool_instance: 0
           pages_used: 0
           pages_free: 0
       relocation_ops: 0
      relocation_time: 0
 *************************** 4. row ***************************
            page_size: 8192
 buffer_pool_instance: 0
           pages_used: 7673
           pages_free: 15
       relocation_ops: 4638
      relocation_time: 0
 *************************** 5. row ***************************
            page_size: 16384
 buffer_pool_instance: 0
           pages_used: 0
           pages_free: 0
       relocation_ops: 0
      relocation_time: 0

Notes

 File: manual.info.tmp, Node: information-schema-innodb-cmp-per-index-table, Next: information-schema-innodb-ft-being-deleted-table, Prev: information-schema-innodb-cmpmem-table, Up: innodb-information-schema-tables

24.4.7 The INFORMATION_SCHEMA INNODB_CMP_PER_INDEX and INNODB_CMP_PER_INDEX_RESET Tables

The note 'INNODB_CMP_PER_INDEX': information-schema-innodb-cmp-per-index-table. and note 'INNODB_CMP_PER_INDEX_RESET': information-schema-innodb-cmp-per-index-table. tables provide status information on operations related to compressed 'InnoDB' tables and indexes, with separate statistics for each combination of database, table, and index, to help you evaluate the performance and usefulness of compression for specific tables.

For a compressed 'InnoDB' table, both the table data and all the secondary indexes are compressed. In this context, the table data is treated as just another index, one that happens to contain all the columns: the clustered index.

The note 'INNODB_CMP_PER_INDEX': information-schema-innodb-cmp-per-index-table. and note 'INNODB_CMP_PER_INDEX_RESET': information-schema-innodb-cmp-per-index-table. tables have these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_CMP_PER_INDEX\G
 *************************** 1. row ***************************
   database_name: employees
      table_name: salaries
      index_name: PRIMARY
    compress_ops: 0
 compress_ops_ok: 0
   compress_time: 0
  uncompress_ops: 23451
 uncompress_time: 4
 *************************** 2. row ***************************
   database_name: employees
      table_name: salaries
      index_name: emp_no
    compress_ops: 0
 compress_ops_ok: 0
   compress_time: 0
  uncompress_ops: 1597
 uncompress_time: 0

Notes

 File: manual.info.tmp, Node: information-schema-innodb-ft-being-deleted-table, Next: information-schema-innodb-ft-config-table, Prev: information-schema-innodb-cmp-per-index-table, Up: innodb-information-schema-tables

24.4.8 The INFORMATION_SCHEMA INNODB_FT_BEING_DELETED Table

The note 'INNODB_FT_BEING_DELETED': information-schema-innodb-ft-being-deleted-table. table provides a snapshot of the note 'INNODB_FT_DELETED': information-schema-innodb-ft-deleted-table. table; it is used only during an note 'OPTIMIZE TABLE': optimize-table. maintenance operation. When note 'OPTIMIZE TABLE': optimize-table. is run, the note 'INNODB_FT_BEING_DELETED': information-schema-innodb-ft-being-deleted-table. table is emptied, and 'DOC_ID' values are removed from the note 'INNODB_FT_DELETED': information-schema-innodb-ft-deleted-table. table. Because the contents of note 'INNODB_FT_BEING_DELETED': information-schema-innodb-ft-being-deleted-table. typically have a short lifetime, this table has limited utility for monitoring or debugging. For information about running note 'OPTIMIZE TABLE': optimize-table. on tables with 'FULLTEXT' indexes, see *note fulltext-fine-tuning::.

This table is empty initially. Before querying it, set the value of the 'innodb_ft_aux_table' system variable to the name (including the database name) of the table that contains the 'FULLTEXT' index; for example 'test/articles'. The output appears similar to the example provided for the *note 'INNODB_FT_DELETED': information-schema-innodb-ft-deleted-table. table.

For related usage information and examples, see *note innodb-information-schema-fulltext_index-tables::.

The *note 'INNODB_FT_BEING_DELETED': information-schema-innodb-ft-being-deleted-table. table has these columns:

Notes

 File: manual.info.tmp, Node: information-schema-innodb-ft-config-table, Next: information-schema-innodb-ft-default-stopword-table, Prev: information-schema-innodb-ft-being-deleted-table, Up: innodb-information-schema-tables

24.4.9 The INFORMATION_SCHEMA INNODB_FT_CONFIG Table

The *note 'INNODB_FT_CONFIG': information-schema-innodb-ft-config-table. table provides metadata about the 'FULLTEXT' index and associated processing for an 'InnoDB' table.

This table is empty initially. Before querying it, set the value of the 'innodb_ft_aux_table' system variable to the name (including the database name) of the table that contains the 'FULLTEXT' index; for example 'test/articles'.

For related usage information and examples, see *note innodb-information-schema-fulltext_index-tables::.

The *note 'INNODB_FT_CONFIG': information-schema-innodb-ft-config-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_CONFIG;
 +---------------------------+-------------------+
 | KEY                       | VALUE             |
 +---------------------------+-------------------+
 | optimize_checkpoint_limit | 180               |
 | synced_doc_id             | 0                 |
 | stopword_table_name       | test/my_stopwords |
 | use_stopword              | 1                 |
 +---------------------------+-------------------+

Notes

 File: manual.info.tmp, Node: information-schema-innodb-ft-default-stopword-table, Next: information-schema-innodb-ft-deleted-table, Prev: information-schema-innodb-ft-config-table, Up: innodb-information-schema-tables

24.4.10 The INFORMATION_SCHEMA INNODB_FT_DEFAULT_STOPWORD Table

The note 'INNODB_FT_DEFAULT_STOPWORD': information-schema-innodb-ft-default-stopword-table. table holds a list of stopwords that are used by default when creating a 'FULLTEXT' index on 'InnoDB' tables. For information about the default 'InnoDB' stopword list and how to define your own stopword lists, see note fulltext-stopwords::.

For related usage information and examples, see *note innodb-information-schema-fulltext_index-tables::.

The *note 'INNODB_FT_DEFAULT_STOPWORD': information-schema-innodb-ft-default-stopword-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_DEFAULT_STOPWORD;
 +-------+
 | value |
 +-------+
 | a     |
 | about |
 | an    |
 | are   |
 | as    |
 | at    |
 | be    |
 | by    |
 | com   |
 | de    |
 | en    |
 | for   |
 | from  |
 | how   |
 | i     |
 | in    |
 | is    |
 | it    |
 | la    |
 | of    |
 | on    |
 | or    |
 | that  |
 | the   |
 | this  |
 | to    |
 | was   |
 | what  |
 | when  |
 | where |
 | who   |
 | will  |
 | with  |
 | und   |
 | the   |
 | www   |
 +-------+
 36 rows in set (0.00 sec)

Notes

 File: manual.info.tmp, Node: information-schema-innodb-ft-deleted-table, Next: information-schema-innodb-ft-index-cache-table, Prev: information-schema-innodb-ft-default-stopword-table, Up: innodb-information-schema-tables

24.4.11 The INFORMATION_SCHEMA INNODB_FT_DELETED Table

The note 'INNODB_FT_DELETED': information-schema-innodb-ft-deleted-table. table stores rows that are deleted from the 'FULLTEXT' index for an 'InnoDB' table. To avoid expensive index reorganization during DML operations for an 'InnoDB' 'FULLTEXT' index, the information about newly deleted words is stored separately, filtered out of search results when you do a text search, and removed from the main search index only when you issue an note 'OPTIMIZE TABLE': optimize-table. statement for the 'InnoDB' table. For more information, see *note fulltext-optimize::.

This table is empty initially. Before querying it, set the value of the 'innodb_ft_aux_table' system variable to the name (including the database name) of the table that contains the 'FULLTEXT' index; for example 'test/articles'.

For related usage information and examples, see *note innodb-information-schema-fulltext_index-tables::.

The *note 'INNODB_FT_DELETED': information-schema-innodb-ft-deleted-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_DELETED;
 +--------+
 | DOC_ID |
 +--------+
 |      6 |
 |      7 |
 |      8 |
 +--------+

Notes

 File: manual.info.tmp, Node: information-schema-innodb-ft-index-cache-table, Next: information-schema-innodb-ft-index-table-table, Prev: information-schema-innodb-ft-deleted-table, Up: innodb-information-schema-tables

24.4.12 The INFORMATION_SCHEMA INNODB_FT_INDEX_CACHE Table

The note 'INNODB_FT_INDEX_CACHE': information-schema-innodb-ft-index-cache-table. table provides token information about newly inserted rows in a 'FULLTEXT' index. To avoid expensive index reorganization during DML operations, the information about newly indexed words is stored separately, and combined with the main search index only when note 'OPTIMIZE TABLE': optimize-table. is run, when the server is shut down, or when the cache size exceeds a limit defined by the 'innodb_ft_cache_size' or 'innodb_ft_total_cache_size' system variable.

This table is empty initially. Before querying it, set the value of the 'innodb_ft_aux_table' system variable to the name (including the database name) of the table that contains the 'FULLTEXT' index; for example 'test/articles'.

For related usage information and examples, see *note innodb-information-schema-fulltext_index-tables::.

The *note 'INNODB_FT_INDEX_CACHE': information-schema-innodb-ft-index-cache-table. table has these columns:

Notes

 File: manual.info.tmp, Node: information-schema-innodb-ft-index-table-table, Next: information-schema-innodb-locks-table, Prev: information-schema-innodb-ft-index-cache-table, Up: innodb-information-schema-tables

24.4.13 The INFORMATION_SCHEMA INNODB_FT_INDEX_TABLE Table

The *note 'INNODB_FT_INDEX_TABLE': information-schema-innodb-ft-index-table-table. table provides information about the inverted index used to process text searches against the 'FULLTEXT' index of an 'InnoDB' table.

This table is empty initially. Before querying it, set the value of the 'innodb_ft_aux_table' system variable to the name (including the database name) of the table that contains the 'FULLTEXT' index; for example 'test/articles'.

For related usage information and examples, see *note innodb-information-schema-fulltext_index-tables::.

The *note 'INNODB_FT_INDEX_TABLE': information-schema-innodb-ft-index-table-table. table has these columns:

Notes

 File: manual.info.tmp, Node: information-schema-innodb-locks-table, Next: information-schema-innodb-lock-waits-table, Prev: information-schema-innodb-ft-index-table-table, Up: innodb-information-schema-tables

24.4.14 The INFORMATION_SCHEMA INNODB_LOCKS Table

The *note 'INNODB_LOCKS': information-schema-innodb-locks-table. table provides information about each lock that an 'InnoDB' transaction has requested but not yet acquired, and each lock that a transaction holds that is blocking another transaction.

Note:

This table is deprecated as of MySQL 5.7.14 and is removed in MySQL 8.0.

The *note 'INNODB_LOCKS': information-schema-innodb-locks-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS\G
 *************************** 1. row ***************************
     lock_id: 3723:72:3:2
 lock_trx_id: 3723
   lock_mode: X
   lock_type: RECORD
  lock_table: `mysql`.`t`
  lock_index: PRIMARY
  lock_space: 72
   lock_page: 3
    lock_rec: 2
   lock_data: 1, 9
 *************************** 2. row ***************************
     lock_id: 3722:72:3:2
 lock_trx_id: 3722
   lock_mode: S
   lock_type: RECORD
  lock_table: `mysql`.`t`
  lock_index: PRIMARY
  lock_space: 72
   lock_page: 3
    lock_rec: 2
   lock_data: 1, 9

Notes

 File: manual.info.tmp, Node: information-schema-innodb-lock-waits-table, Next: information-schema-innodb-metrics-table, Prev: information-schema-innodb-locks-table, Up: innodb-information-schema-tables

24.4.15 The INFORMATION_SCHEMA INNODB_LOCK_WAITS Table

The *note 'INNODB_LOCK_WAITS': information-schema-innodb-lock-waits-table. table contains one or more rows for each blocked 'InnoDB' transaction, indicating the lock it has requested and any locks that are blocking that request.

Note:

This table is deprecated as of MySQL 5.7.14 and is removed in MySQL 8.0.

The *note 'INNODB_LOCK_WAITS': information-schema-innodb-lock-waits-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS\G
 *************************** 1. row ***************************
 requesting_trx_id: 3396
 requested_lock_id: 3396:91:3:2
   blocking_trx_id: 3395
  blocking_lock_id: 3395:91:3:2

Notes

 File: manual.info.tmp, Node: information-schema-innodb-metrics-table, Next: information-schema-innodb-sys-columns-table, Prev: information-schema-innodb-lock-waits-table, Up: innodb-information-schema-tables

24.4.16 The INFORMATION_SCHEMA INNODB_METRICS Table

The *note 'INNODB_METRICS': information-schema-innodb-metrics-table. table provides a wide variety of 'InnoDB' performance information, complementing the specific focus areas of the Performance Schema tables for 'InnoDB'. With simple queries, you can check the overall health of the system. With more detailed queries, you can diagnose issues such as performance bottlenecks, resource shortages, and application issues.

Each monitor represents a point within the 'InnoDB' source code that is instrumented to gather counter information. Each counter can be started, stopped, and reset. You can also perform these actions for a group of counters using their common module name.

By default, relatively little data is collected. To start, stop, and reset counters, set one of the system variables 'innodb_monitor_enable', 'innodb_monitor_disable', 'innodb_monitor_reset', or 'innodb_monitor_reset_all', using the name of the counter, the name of the module, a wildcard match for such a name using the '%' character, or the special keyword 'all'.

For usage information, see *note innodb-information-schema-metrics-table::.

The *note 'INNODB_METRICS': information-schema-innodb-metrics-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME='dml_inserts'\G
 *************************** 1. row ***************************
            NAME: dml_inserts
       SUBSYSTEM: dml
           COUNT: 3
       MAX_COUNT: 3
       MIN_COUNT: NULL
       AVG_COUNT: 0.046153846153846156
     COUNT_RESET: 3
 MAX_COUNT_RESET: 3
 MIN_COUNT_RESET: NULL
 AVG_COUNT_RESET: NULL
    TIME_ENABLED: 2014-12-04 14:18:28
   TIME_DISABLED: NULL
    TIME_ELAPSED: 65
      TIME_RESET: NULL
          STATUS: enabled
            TYPE: status_counter
         COMMENT: Number of rows inserted

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-columns-table, Next: information-schema-innodb-sys-datafiles-table, Prev: information-schema-innodb-metrics-table, Up: innodb-information-schema-tables

24.4.17 The INFORMATION_SCHEMA INNODB_SYS_COLUMNS Table

The *note 'INNODB_SYS_COLUMNS': information-schema-innodb-sys-columns-table. table provides metadata about 'InnoDB' table columns, equivalent to the information from the 'SYS_COLUMNS' table in the 'InnoDB' data dictionary.

For related usage information and examples, see *note innodb-information-schema-system-tables::.

The *note 'INNODB_SYS_COLUMNS': information-schema-innodb-sys-columns-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_COLUMNS where TABLE_ID = 71\G
 *************************** 1. row ***************************
 TABLE_ID: 71
     NAME: col1
      POS: 0
    MTYPE: 6
   PRTYPE: 1027
      LEN: 4
 *************************** 2. row ***************************
 TABLE_ID: 71
     NAME: col2
      POS: 1
    MTYPE: 2
   PRTYPE: 524542
      LEN: 10
 *************************** 3. row ***************************
 TABLE_ID: 71
     NAME: col3
      POS: 2
    MTYPE: 1
   PRTYPE: 524303
      LEN: 10

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-datafiles-table, Next: information-schema-innodb-sys-fields-table, Prev: information-schema-innodb-sys-columns-table, Up: innodb-information-schema-tables

24.4.18 The INFORMATION_SCHEMA INNODB_SYS_DATAFILES Table

The *note 'INNODB_SYS_DATAFILES': information-schema-innodb-sys-datafiles-table. table provides data file path information for 'InnoDB' file-per-table and general tablespaces, equivalent to the information in the 'SYS_DATAFILES' table in the 'InnoDB' data dictionary.

For related usage information and examples, see *note innodb-information-schema-system-tables::.

Note:

The 'INFORMATION_SCHEMA' *note 'FILES': information-schema-files-table. table reports metadata for all 'InnoDB' tablespace types including file-per-table tablespaces, general tablespaces, the system tablespace, the temporary tablespace, and undo tablespaces, if present.

The *note 'INNODB_SYS_DATAFILES': information-schema-innodb-sys-datafiles-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_DATAFILES WHERE SPACE = 57\G
 *************************** 1. row ***************************
 SPACE: 57
  PATH: ./test/t1.ibd

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-fields-table, Next: information-schema-innodb-sys-foreign-table, Prev: information-schema-innodb-sys-datafiles-table, Up: innodb-information-schema-tables

24.4.19 The INFORMATION_SCHEMA INNODB_SYS_FIELDS Table

The *note 'INNODB_SYS_FIELDS': information-schema-innodb-sys-fields-table. table provides metadata about the key columns (fields) of 'InnoDB' indexes, equivalent to the information from the 'SYS_FIELDS' table in the 'InnoDB' data dictionary.

For related usage information and examples, see *note innodb-information-schema-system-tables::.

The *note 'INNODB_SYS_FIELDS': information-schema-innodb-sys-fields-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_FIELDS WHERE INDEX_ID = 117\G
 *************************** 1. row ***************************
 INDEX_ID: 117
     NAME: col1
      POS: 0

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-foreign-table, Next: information-schema-innodb-sys-foreign-cols-table, Prev: information-schema-innodb-sys-fields-table, Up: innodb-information-schema-tables

24.4.20 The INFORMATION_SCHEMA INNODB_SYS_FOREIGN Table

The *note 'INNODB_SYS_FOREIGN': information-schema-innodb-sys-foreign-table. table provides metadata about 'InnoDB' foreign keys, equivalent to the information from the 'SYS_FOREIGN' table in the 'InnoDB' data dictionary.

For related usage information and examples, see *note innodb-information-schema-system-tables::.

The *note 'INNODB_SYS_FOREIGN': information-schema-innodb-sys-foreign-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_FOREIGN\G
 *************************** 1. row ***************************
       ID: test/fk1
 FOR_NAME: test/child
 REF_NAME: test/parent
   N_COLS: 1
     TYPE: 1

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-foreign-cols-table, Next: information-schema-innodb-sys-indexes-table, Prev: information-schema-innodb-sys-foreign-table, Up: innodb-information-schema-tables

24.4.21 The INFORMATION_SCHEMA INNODB_SYS_FOREIGN_COLS Table

The *note 'INNODB_SYS_FOREIGN_COLS': information-schema-innodb-sys-foreign-cols-table. table provides status information about the columns of 'InnoDB' foreign keys, equivalent to the information from the 'SYS_FOREIGN_COLS' table in the 'InnoDB' data dictionary.

For related usage information and examples, see *note innodb-information-schema-system-tables::.

The *note 'INNODB_SYS_FOREIGN_COLS': information-schema-innodb-sys-foreign-cols-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_FOREIGN_COLS WHERE ID = 'test/fk1'\G
 *************************** 1. row ***************************
           ID: test/fk1
 FOR_COL_NAME: parent_id
 REF_COL_NAME: id
          POS: 0

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-indexes-table, Next: information-schema-innodb-sys-tables-table, Prev: information-schema-innodb-sys-foreign-cols-table, Up: innodb-information-schema-tables

24.4.22 The INFORMATION_SCHEMA INNODB_SYS_INDEXES Table

The *note 'INNODB_SYS_INDEXES': information-schema-innodb-sys-indexes-table. table provides metadata about 'InnoDB' indexes, equivalent to the information in the internal 'SYS_INDEXES' table in the 'InnoDB' data dictionary.

For related usage information and examples, see *note innodb-information-schema-system-tables::.

The *note 'INNODB_SYS_INDEXES': information-schema-innodb-sys-indexes-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_INDEXES WHERE TABLE_ID = 34\G
 *************************** 1. row ***************************
        INDEX_ID: 39
            NAME: GEN_CLUST_INDEX
        TABLE_ID: 34
            TYPE: 1
        N_FIELDS: 0
         PAGE_NO: 3
           SPACE: 23
 MERGE_THRESHOLD: 50
 *************************** 2. row ***************************
        INDEX_ID: 40
            NAME: i1
        TABLE_ID: 34
            TYPE: 0
        N_FIELDS: 1
         PAGE_NO: 4
           SPACE: 23
 MERGE_THRESHOLD: 50

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-tables-table, Next: information-schema-innodb-sys-tablespaces-table, Prev: information-schema-innodb-sys-indexes-table, Up: innodb-information-schema-tables

24.4.23 The INFORMATION_SCHEMA INNODB_SYS_TABLES Table

The *note 'INNODB_SYS_TABLES': information-schema-innodb-sys-tables-table. table provides metadata about 'InnoDB' tables, equivalent to the information from the 'SYS_TABLES' table in the 'InnoDB' data dictionary.

For related usage information and examples, see *note innodb-information-schema-system-tables::.

The *note 'INNODB_SYS_TABLES': information-schema-innodb-sys-tables-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE TABLE_ID = 214\G
 *************************** 1. row ***************************
      TABLE_ID: 214
          NAME: test/t1
          FLAG: 129
        N_COLS: 4
         SPACE: 233
   FILE_FORMAT: Antelope
    ROW_FORMAT: Compact
 ZIP_PAGE_SIZE: 0
    SPACE_TYPE: General

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-tablespaces-table, Next: information-schema-innodb-sys-tablestats-table, Prev: information-schema-innodb-sys-tables-table, Up: innodb-information-schema-tables

24.4.24 The INFORMATION_SCHEMA INNODB_SYS_TABLESPACES Table

The *note 'INNODB_SYS_TABLESPACES': information-schema-innodb-sys-tablespaces-table. table provides metadata about 'InnoDB' file-per-table and general tablespaces, equivalent to the information in the 'SYS_TABLESPACES' table in the 'InnoDB' data dictionary.

For related usage information and examples, see *note innodb-information-schema-system-tables::.

Note:

The 'INFORMATION_SCHEMA' *note 'FILES': information-schema-files-table. table reports metadata for all 'InnoDB' tablespace types including file-per-table tablespaces, general tablespaces, the system tablespace, the temporary tablespace, and undo tablespaces, if present.

The *note 'INNODB_SYS_TABLESPACES': information-schema-innodb-sys-tablespaces-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES WHERE SPACE = 26\G
 *************************** 1. row ***************************
          SPACE: 26
           NAME: test/t1
           FLAG: 0
    FILE_FORMAT: Antelope
     ROW_FORMAT: Compact or Redundant
      PAGE_SIZE: 16384
  ZIP_PAGE_SIZE: 0
     SPACE_TYPE: Single
  FS_BLOCK_SIZE: 4096
      FILE_SIZE: 98304
 ALLOCATED_SIZE: 65536

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-tablestats-table, Next: information-schema-innodb-sys-virtual-table, Prev: information-schema-innodb-sys-tablespaces-table, Up: innodb-information-schema-tables

24.4.25 The INFORMATION_SCHEMA INNODB_SYS_TABLESTATS View

The *note 'INNODB_SYS_TABLESTATS': information-schema-innodb-sys-tablestats-table. table provides a view of low-level status information about 'InnoDB' tables. This data is used by the MySQL optimizer to calculate which index to use when querying an 'InnoDB' table. This information is derived from in-memory data structures rather than data stored on disk. There is no corresponding internal 'InnoDB' system table.

'InnoDB' tables are represented in this view if they have been opened since the last server restart and have not aged out of the table cache. Tables for which persistent stats are available are always represented in this view.

Table statistics are updated only for note 'DELETE': delete. or note 'UPDATE': update. operations that modify indexed columns. Statistics are not updated by operations that modify only nonindexed columns.

*note 'ANALYZE TABLE': analyze-table. clears table statistics and sets the 'STATS_INITIALIZED' column to 'Uninitialized'. Statistics are collected again the next time the table is accessed.

For related usage information and examples, see *note innodb-information-schema-system-tables::.

The *note 'INNODB_SYS_TABLESTATS': information-schema-innodb-sys-tablestats-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS where TABLE_ID = 71\G
 *************************** 1. row ***************************
          TABLE_ID: 71
              NAME: test/t1
 STATS_INITIALIZED: Initialized
          NUM_ROWS: 1
  CLUST_INDEX_SIZE: 1
  OTHER_INDEX_SIZE: 0
  MODIFIED_COUNTER: 1
           AUTOINC: 0
         REF_COUNT: 1

Notes

 File: manual.info.tmp, Node: information-schema-innodb-sys-virtual-table, Next: information-schema-innodb-temp-table-info-table, Prev: information-schema-innodb-sys-tablestats-table, Up: innodb-information-schema-tables

24.4.26 The INFORMATION_SCHEMA INNODB_SYS_VIRTUAL Table

The *note 'INNODB_SYS_VIRTUAL': information-schema-innodb-sys-virtual-table. table provides metadata about 'InnoDB' virtual generated columns and columns upon which virtual generated columns are based, equivalent to information in the 'SYS_VIRTUAL' table in the 'InnoDB' data dictionary.

A row appears in the 'INNODB_SYS_VIRTUAL' table for each column upon which a virtual generated column is based.

The *note 'INNODB_SYS_VIRTUAL': information-schema-innodb-sys-virtual-table. table has these columns:

Example

 mysql> CREATE TABLE `t1` (
          `a` int(11) DEFAULT NULL,
          `b` int(11) DEFAULT NULL,
          `c` int(11) GENERATED ALWAYS AS (a+b) VIRTUAL,
          `h` varchar(10) DEFAULT NULL
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_VIRTUAL
        WHERE TABLE_ID IN
          (SELECT TABLE_ID FROM INFORMATION_SCHEMA.INNODB_TABLES
           WHERE NAME LIKE "test/t1");
 +----------+-------+----------+
 | TABLE_ID | POS   | BASE_POS |
 +----------+-------+----------+
 |       95 | 65538 |        0 |
 |       95 | 65538 |        1 |
 +----------+-------+----------+

Notes

 File: manual.info.tmp, Node: information-schema-innodb-temp-table-info-table, Next: information-schema-innodb-trx-table, Prev: information-schema-innodb-sys-virtual-table, Up: innodb-information-schema-tables

24.4.27 The INFORMATION_SCHEMA INNODB_TEMP_TABLE_INFO Table

The note 'INNODB_TEMP_TABLE_INFO': information-schema-innodb-temp-table-info-table. table provides information about user-created 'InnoDB' temporary tables that are active in an 'InnoDB' instance. It does not provide information about internal 'InnoDB' temporary tables used by the optimizer. The note 'INNODB_TEMP_TABLE_INFO': information-schema-innodb-temp-table-info-table. table is created when first queried, exists only in memory, and is not persisted to disk.

For usage information and examples, see *note innodb-information-schema-temp-table-info::.

The *note 'INNODB_TEMP_TABLE_INFO': information-schema-innodb-temp-table-info-table. table has these columns:

Example

 mysql> CREATE TEMPORARY TABLE t1 (c1 INT PRIMARY KEY) ENGINE=INNODB;

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_TEMP_TABLE_INFO\G
 *************************** 1. row ***************************
             TABLE_ID: 38
                 NAME: #sql26cf_6_0
               N_COLS: 4
                SPACE: 52
 PER_TABLE_TABLESPACE: FALSE
        IS_COMPRESSED: FALSE

Notes

 File: manual.info.tmp, Node: information-schema-innodb-trx-table, Prev: information-schema-innodb-temp-table-info-table, Up: innodb-information-schema-tables

24.4.28 The INFORMATION_SCHEMA INNODB_TRX Table

The *note 'INNODB_TRX': information-schema-innodb-trx-table. table provides information about every transaction currently executing inside 'InnoDB', including whether the transaction is waiting for a lock, when the transaction started, and the SQL statement the transaction is executing, if any.

For usage information, see *note innodb-information-schema-examples::.

The *note 'INNODB_TRX': information-schema-innodb-trx-table. table has these columns:

Example

 mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_TRX\G
 *************************** 1. row ***************************
                     trx_id: 1510
                  trx_state: RUNNING
                trx_started: 2014-11-19 13:24:40
      trx_requested_lock_id: NULL
           trx_wait_started: NULL
                 trx_weight: 586739
        trx_mysql_thread_id: 2
                  trx_query: DELETE FROM employees.salaries WHERE salary > 65000
        trx_operation_state: updating or deleting
          trx_tables_in_use: 1
          trx_tables_locked: 1
           trx_lock_structs: 3003
      trx_lock_memory_bytes: 450768
            trx_rows_locked: 1407513
          trx_rows_modified: 583736
    trx_concurrency_tickets: 0
        trx_isolation_level: REPEATABLE READ
          trx_unique_checks: 1
     trx_foreign_key_checks: 1
 trx_last_foreign_key_error: NULL
  trx_adaptive_hash_latched: 0
  trx_adaptive_hash_timeout: 10000
           trx_is_read_only: 0
 trx_autocommit_non_locking: 0

Notes

 File: manual.info.tmp, Node: thread-pool-information-schema-tables, Next: connection-control-information-schema-tables, Prev: innodb-information-schema-tables, Up: information-schema