13.7.7.16 SHOW ENGINES statement

Official document address: 13.7.7.16 SHOW ENGINES Statement


SHOW [STORAGE] ENGINES

SHOW ENGINESDisplay the status information of the server storage engine. This is especially useful for checking whether a storage engine is supported or to see what the default engine is.

Query information about MySQL storage engines, see Chapter 15 InnoDB storage engine and storage engine Chapter 16 to choose from .

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

Depending on the MySQL version used and other factors, SHOW ENGINESthe output may vary.

SHOW ENGINESThe output has the following columns:

  • Engine
    The name of the storage engine.

  • The support level of the Support server for the storage engine is shown in the following table.
value meaning
YES The engine is supported and in a valid state
DEFAULT The engine is supported and in a valid state, this is the default engine
NO The engine is not supported
DISABLED The engine is supported, but it is disabled

A value NOmeans that the server does not support the engine at compile time, so it cannot be enabled at runtime.

The DISABLEDvalue appears either because the option to disable the engine was used when the server was started, or because all the options required to enable the engine were not given. In the latter case, the error log should contain a reason why the option is disabled. See 5.4.2 Error log .

If the server has been compiled to support the storage engine, but --skip-engine_namestarted with options, you may see the storage engine being blocked DISABLED. For the NDBstorage engine, it DISABLEDmeans that the server supports NDB Clusterit at compile time , but it is not --ndbclusterstarted with options.

All MySQL servers support MyISAMtables. It is impossible to disable MyISAM.

  • Comment
    A brief description of the storage engine.

  • Whether the Transactions storage engine supports transaction processing.

  • Whether the XA storage engine supports XA transactions.

  • Whether the Savepoints storage engine supports savepoints.

You can also INFORMATION_SCHEMA ENGINESget storage engine information from the table. See 26.13 INFORMATION_SCHEMA ENGINES table .

Guess you like

Origin blog.csdn.net/wb1046329430/article/details/115026526