Official document address: 13.7.7.16 SHOW ENGINES Statement
SHOW [STORAGE] ENGINES
SHOW ENGINES
Display 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 ENGINES
the output may vary.
SHOW ENGINES
The 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 NO
means that the server does not support the engine at compile time, so it cannot be enabled at runtime.
The DISABLED
value 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_name
started with options, you may see the storage engine being blocked DISABLED
. For the NDB
storage engine, it DISABLED
means that the server supports NDB Cluster
it at compile time , but it is not --ndbcluster
started with options.
All MySQL servers support MyISAM
tables. 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
ENGINES
get storage engine information from the table. See 26.13 INFORMATION_SCHEMA ENGINES table .