今日命令
命令: show engines;
标准语法:show stroage engines;
其中stroage为可选项。
作用:显示当前MySQL版本支持的存储引擎。
例子(MySQL版本: 5.7.20):
mysql> show storage engines; +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ | Engine | Support | Comment | Transactions | XA | Savepoints | +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO | | CSV | YES | CSV storage engine | NO | NO | NO | | MyISAM | YES | MyISAM storage engine | NO | NO | NO | | BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO | | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO | | InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES | | ARCHIVE | YES | Archive storage engine | NO | NO | NO | | PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO | | FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL | +--------------------+---------+---------------------------------------------------------------+--------------+------+------------+ 9 rows in set (0.00 sec)
使用场景:在查看当前数据库版本支持的存储引擎,查看默认存储引擎时非常实用。
Engine:存储引擎名称。
Support: 表示MySQL当前服务器版本是否支持该存储引擎,YES为支持 NO 为不支持。
Comment:为该存储引擎的特性,如Innodb
支持事务,行级锁等。
Transactions:是否支持事务,YES为支持,No为不支持。
XA和Savepoints:这两个属性,与事务相关,当Transactions为Yes时,这两个属性才有意义,否则均为NO。
更多Mysql内容来自木庄网络博客
标签:Mysql
相关阅读 >>
更多相关阅读请进入《mysql》频道 >>

数据库系统概念 第6版
本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。