The INNODB_SYS_TABLESPACES 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 InnoDB INFORMATION_SCHEMA System Tables.
        The INFORMATION_SCHEMA
        FILES 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 INNODB_SYS_TABLESPACES table has
      these columns:
- SPACE- The tablespace ID. 
- NAME- The schema (database) and table name. 
- FLAG- A numeric value that represents bit-level information about tablespace format and storage characteristics. 
- FILE_FORMAT- The tablespace file format. For example, Antelope, Barracuda, or - Any(general tablespaces support any row format). The data in this field is interpreted from the tablespace flags information that resides in the .ibd file. For more information about- InnoDBfile formats, see InnoDB File-Format Management.
- ROW_FORMAT- The tablespace row format ( - Compact or Redundant,- Dynamic, or- Compressed). The data in this column is interpreted from the tablespace flags information that resides in the- .ibdfile.
- PAGE_SIZE- The tablespace page size. The data in this column is interpreted from the tablespace flags information that resides in the - .ibdfile.
- ZIP_PAGE_SIZE- The tablespace zip page size. The data in this column is interpreted from the tablespace flags information that resides in the - .ibdfile.
- SPACE_TYPE- The type of tablespace. Possible values include - Generalfor general tablespaces and- Singlefor file-per-table tablespaces.
- FS_BLOCK_SIZE- The file system block size, which is the unit size used for hole punching. This column pertains to the - InnoDBtransparent page compression feature.
- FILE_SIZE- The apparent size of the file, which represents the maximum size of the file, uncompressed. This column pertains to the - InnoDBtransparent page compression feature.
- ALLOCATED_SIZE- The actual size of the file, which is the amount of space allocated on disk. This column pertains to the - InnoDBtransparent page compression feature.
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: 65536Notes
- You must have the - PROCESSprivilege to query this table.
- Use the - INFORMATION_SCHEMA- COLUMNStable or the- SHOW COLUMNSstatement to view additional information about the columns of this table, including data types and default values.
- Because tablespace flags are always zero for all Antelope file formats (unlike table flags), there is no way to determine from this flag integer if the tablespace row format is Redundant or Compact. As a result, the possible values for the - ROW_FORMATfield are “Compact or Redundant”, “Compressed”, or “Dynamic.”
- With the introduction of general tablespaces, - InnoDBsystem tablespace data (for SPACE 0) is exposed in- INNODB_SYS_TABLESPACES.