13.7.7.16 SHOW ENGINES Statement语句

SHOW [STORAGE] ENGINES

SHOW ENGINES displays status information about the server's storage engines. 显示有关服务器存储引擎的状态信息。This is particularly useful for checking whether a storage engine is supported, or to see what the default engine is.这对于检查是否支持存储引擎或查看默认引擎是什么特别有用。

For information about MySQL storage engines, see Chapter 15, The InnoDB Storage Engine, and Chapter 16, Alternative Storage Engines.有关MySQL存储引擎的信息,请参阅第15章,“InnoDB存储引擎”第16章,“替代存储引擎”

mysql> SHOW ENGINES\G
*************************** 1. row ***************************
      Engine: ARCHIVE
     Support: YES
     Comment: Archive storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 2. row ***************************
      Engine: BLACKHOLE
     Support: YES
     Comment: /dev/null storage engine (anything you write to it disappears)
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 3. row ***************************
      Engine: MRG_MYISAM
     Support: YES
     Comment: Collection of identical MyISAM tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 4. row ***************************
      Engine: FEDERATED
     Support: NO
     Comment: Federated MySQL storage engine
Transactions: NULL
          XA: NULL
  Savepoints: NULL
*************************** 5. row ***************************
      Engine: MyISAM
     Support: YES
     Comment: MyISAM storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 6. row ***************************
      Engine: PERFORMANCE_SCHEMA
     Support: YES
     Comment: Performance Schema
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 7. row ***************************
      Engine: InnoDB
     Support: DEFAULT
     Comment: Supports transactions, row-level locking, and foreign keys
Transactions: YES
          XA: YES
  Savepoints: YES
*************************** 8. row ***************************
      Engine: MEMORY
     Support: YES
     Comment: Hash based, stored in memory, useful for temporary tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 9. row ***************************
      Engine: CSV
     Support: YES
     Comment: CSV storage engine
Transactions: NO
          XA: NO
  Savepoints: NO

The output from SHOW ENGINES may vary according to the MySQL version used and other factors.SHOW ENGINES的输出可能因所使用的MySQL版本和其他因素而异。

SHOW ENGINES output has these columns:输出具有以下列:

Storage engine information is also available from the INFORMATION_SCHEMA ENGINES table. 存储引擎信息也可从INFORMATION_SCHEMA ENGINES表中获得。See Section 26.3.13, “The INFORMATION_SCHEMA ENGINES Table”.请参阅第26.3.13节,“INFORMATION_SCHEMA ENGINES表”