如何检查MySQL服务器中的默认存储引擎
时间:2019-08-20 17:58:12 来源:igfitidea点击:
MySQL服务器有很多引擎,早期MyISAM是默认的存储引擎,
但是从MySQL版本5.5开始,InnoDB现在变成了默认的存储引擎。
如何查看mysql服务器中运行的默认存储引擎是什么?
使用以下命令检查MySQL Server中的默认存储引擎
show engines;
在下面的例子中,InnoDB的Support值是DEFAULT,所以它是默认存储引擎。
mysql> show engines; +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ | Engine | Support | Comment | Transactions | XA | Savepoints | +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ | InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES | | MRG_MYISAM | YES | Collection of identical MyISAM tables | 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 | | CSV | YES | CSV storage engine | NO | NO | NO | | ARCHIVE | YES | Archive storage engine | NO | NO | NO | | FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL | | PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO | +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+ 9 rows in set (0.00 sec) mysql>