Home  >  Article  >  Database  >  如何查看mysql中表的存储引擎类型

如何查看mysql中表的存储引擎类型

WBOY
WBOYOriginal
2016-06-07 17:36:59812browse

mysql支持多种存储引擎,在处理不同类型的应用时,可以通过选择使用不同的存储引擎提高应用的效率,或者提供灵活的存储。mysql的存储引擎包括:MyISAM、InnoDB、


 mysql支持多种存储引擎,在处理不同类型的应用时,可以通过选择使用不同的存储引擎提高应用的效率,或者提供灵活的存储。

 mysql的存储引擎包括:MyISAM、InnoDB、BDB、MEMORY、MERGE、EXAMPLE、NDB Cluster、ARCHIVE、CSV、BLACKHOLE、FEDERATED等,其中InnoDB和BDB提供事务安全表,其它存储引擎都是非事务安全表。

 查看mysql中表的存储引擎类型有几个方法,具体如下:


1.show table status from 数据库库名 where,例:

mysql> SHOW  ENGINES;

+------------+---------+----------------------------------------------------------+(省略部分结果)

| Engine     | Support | Comment                                                  |(省略部分结果)

+------------+---------+----------------------------------------------------------+(省略部分结果)

| InnoDB     | NO      | Supports transactions, row-level locking, and foreign keys|(省略部分结果)

| MRG_MYISAM | YES     | Collection of identical MyISAM tables                  |(省略部分结果)

| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disa(省略部分结果)

| CSV        | YES     | CSV storage engine                                       |(省略部分结果)

| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables|(省略部分结果)

| FEDERATED  | NO      | Federated MySQL storage engine                           |(省略部分结果)

| ARCHIVE    | YES     | Archive storage engine                                   |(省略部分结果)

| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance|(省略部分结果)

+------------+---------+----------------------------------------------------------+(省略部分结果)

8 rows in set (0.00 sec)

mysql>



本文出自 “兵临城下” 博客,,请务必保留此出处

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn