美文网首页PHP程序员
MySQL中有哪些存储引擎?

MySQL中有哪些存储引擎?

作者: php转go | 来源:发表于2020-08-29 18:45 被阅读0次

查询当前MySQL数据库支持的哪些存储引擎的方法:

mysql> SHOW ENGINES;
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine             | Support | Comment                                                        | Transactions | XA   | Savepoints |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| MEMORY             | YES     | Hash based, stored in memory, useful for temporary tables      | NO           | NO   | NO         |
| MRG_MYISAM         | YES     | Collection of identical MyISAM tables                          | NO           | NO   | NO         |
| CSV                | YES     | CSV storage engine                                             | NO           | NO   | NO         |
| FEDERATED          | NO      | Federated MySQL storage engine                                 | NULL         | NULL | NULL       |
| PERFORMANCE_SCHEMA | YES     | Performance Schema                                             | NO           | NO   | NO         |
| MyISAM             | DEFAULT | MyISAM storage engine                                          | NO           | NO   | NO         |
| InnoDB             | YES     | Supports transactions, row-level locking, and foreign keys     | YES          | YES  | YES        |
| BLACKHOLE          | YES     | /dev/null storage engine (anything you write to it disappears) | NO           | NO   | NO         |
| ARCHIVE            | YES     | Archive storage engine                                         | NO           | NO   | NO         |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+

MySQL5.5以后的版本都支持以上的九种存储引擎
InnoDB,MyISAM,Memory,MRG_MYISAM,Archive,Federate,CSV,BLACKHOLE,PERFORMANCE_SCHEMA
其中最常用到的就InnoDB与MyISA

相关文章

网友评论

    本文标题:MySQL中有哪些存储引擎?

    本文链接:https://www.haomeiwen.com/subject/tdvlsktx.html