ENGINES 表提供有关存储引擎的信息。这对于检查存储引擎是否受支持,或者查看默认引擎是什么特别有用。The ENGINES table provides
information about storage engines. This is particularly useful for
checking whether a storage engine is supported, or to see what the
default engine is.
ENGINES 表有以下列:The ENGINES table has these columns:
ENGINEENGINE存储引擎的名称。The name of the storage engine.
SUPPORT服务器对存储引擎的支持级别,如下表所示。The server's level of support for the storage engine, as shown in the following table.
价值Value 意义Meaning YES引擎受支持并且处于活动状态The engine is supported and is active DEFAULTDEFAULT类似 YES,并且这是默认引擎LikeYES, plus this is the default engineNONO引擎不受支持The engine is not supported DISABLEDDISABLED该引擎受支持但已被禁用The engine is supported but has been disabled 值为
NO表示服务器在编译时未启用对该引擎的支持,因此在运行时无法启用。A value ofNOmeans that the server was compiled without support for the engine, so it cannot be enabled at runtime.值为
DISABLED的情况可能是因为服务器以禁用该引擎的选项启动,或者因为未提供启用它所需的所有选项。在后一种情况下,错误日志应包含指示该选项被禁用原因的信息。请参阅 第 7.4.2 节,“错误日志”。A value ofDISABLEDoccurs either because the server was started with an option that disables the engine, or because not all options required to enable it were given. In the latter case, the error log should contain a reason indicating why the option is disabled. See Section 7.4.2, “The Error Log”.如果服务器被编译为支持某个存储引擎,但启动时使用了
--skip-参数,你可能也会看到该存储引擎显示为engine_nameDISABLED。对于NDB存储引擎,DISABLED表示服务器编译时支持 NDB Cluster,但启动时未使用--ndbcluster参数。You might also seeDISABLEDfor a storage engine if the server was compiled to support it, but was started with a--skip-option. For theengine_nameNDBstorage engine,DISABLEDmeans the server was compiled with support for NDB Cluster, but was not started with the--ndbclusteroption.所有 MySQL 服务器都支持
MyISAM表。无法禁用MyISAM。All MySQL servers supportMyISAMtables. It is not possible to disableMyISAM.COMMENTCOMMENT存储引擎的简要描述。A brief description of the storage engine.
TRANSACTIONSTRANSACTIONS存储引擎是否支持事务。Whether the storage engine supports transactions.
XA存储引擎是否支持 XA 事务。Whether the storage engine supports XA transactions.
SAVEPOINTS存储引擎是否支持保存点。Whether the storage engine supports savepoints.
注意事项Notes
存储引擎信息也可以通过 SHOW ENGINES 语句获取。参见 第 15.7.7.17 节,“SHOW ENGINES 语句”。以下语句是等效的:Storage engine information is also available from the
SHOW ENGINES statement. See
Section 15.7.7.17, “SHOW ENGINES Statement”. The following statements are
equivalent:
SELECT * FROM INFORMATION_SCHEMA.ENGINES SHOW ENGINES