{"id":988,"date":"2015-11-18T15:49:05","date_gmt":"2015-11-18T06:49:05","guid":{"rendered":"https:\/\/jirak.net\/wp\/?p=988"},"modified":"2015-11-27T00:37:32","modified_gmt":"2015-11-26T15:37:32","slug":"mysql-5-7-supported-storage-engines","status":"publish","type":"post","link":"https:\/\/jirak.net\/wp\/mysql-5-7-supported-storage-engines\/","title":{"rendered":"MySQL 5.7 Supported Storage Engines"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-927\" src=\"https:\/\/jirak.net\/wp\/wp-content\/uploads\/2015\/10\/logo_mysql_110x57.png\" alt=\"logo_mysql_110x57\" width=\"110\" height=\"57\" \/><\/p>\n<p>\ucd9c\ucc98 :\u00a0https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html<\/p>\n<p>&nbsp;<\/p>\n<h2>MySQL 5.7 Supported Storage Engines<\/h2>\n<div class=\"itemizedlist\">\n<ul class=\"itemizedlist\">\n<li class=\"listitem\"><a class=\"link\" title=\"Chapter 14 The InnoDB Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/innodb-storage-engine.html\"><code class=\"literal\">InnoDB<\/code><\/a>: The default storage engine in MySQL 5.7. <code class=\"literal\">InnoDB<\/code> is a transaction-safe (ACID compliant) storage engine for MySQL that has commit, rollback, and crash-recovery capabilities to protect user data. <code class=\"literal\">InnoDB<\/code> row-level locking (without escalation to coarser granularity locks) and Oracle-style consistent nonlocking reads increase multi-user concurrency and performance. <code class=\"literal\">InnoDB<\/code> stores user data in clustered indexes to reduce I\/O for common queries based on primary keys. To maintain data integrity, <code class=\"literal\">InnoDB<\/code> also supports <code class=\"literal\">FOREIGN KEY<\/code> referential-integrity constraints. For more information about <code class=\"literal\">InnoDB<\/code>, see <a class=\"xref\" title=\"Chapter 14 The InnoDB Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/innodb-storage-engine.html\">Chapter 14, <i>The InnoDB Storage Engine<\/i><\/a>.<\/li>\n<li class=\"listitem\"><a class=\"link\" title=\"15.2 The MyISAM Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/myisam-storage-engine.html\"><code class=\"literal\">MyISAM<\/code><\/a>: These tables have a small footprint. <a class=\"link\" title=\"table lock\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/glossary.html#glos_table_lock\">Table-level locking<\/a> limits the performance in read\/write workloads, so it is often used in read-only or read-mostly workloads in Web and data warehousing configurations.<\/li>\n<li class=\"listitem\"><a class=\"link\" title=\"15.3 The MEMORY Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/memory-storage-engine.html\"><code class=\"literal\">Memory<\/code><\/a>: Stores all data in RAM, for fast access in environments that require quick lookups of non-critical data. This engine was formerly known as the <code class=\"literal\">HEAP<\/code> engine. Its use cases are decreasing; <code class=\"literal\">InnoDB<\/code> with its buffer pool memory area provides a general-purpose and durable way to keep most or all data in memory, and <code class=\"literal\">NDBCLUSTER<\/code> provides fast key-value lookups for huge distributed data sets.<\/li>\n<li class=\"listitem\"><a class=\"link\" title=\"15.4 The CSV Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/csv-storage-engine.html\"><code class=\"literal\">CSV<\/code><\/a>: Its tables are really text files with comma-separated values. CSV tables let you import or dump data in CSV format, to exchange data with scripts and applications that read and write that same format. Because CSV tables are not indexed, you typically keep the data in <code class=\"literal\">InnoDB<\/code> tables during normal operation, and only use CSV tables during the import or export stage.<\/li>\n<li class=\"listitem\"><a class=\"link\" title=\"15.5 The ARCHIVE Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/archive-storage-engine.html\"><code class=\"literal\">Archive<\/code><\/a>: These compact, unindexed tables are intended for storing and retrieving large amounts of seldom-referenced historical, archived, or security audit information.<\/li>\n<li class=\"listitem\"><a class=\"link\" title=\"15.6 The BLACKHOLE Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/blackhole-storage-engine.html\"><code class=\"literal\">Blackhole<\/code><\/a>: The Blackhole storage engine accepts but does not store data, similar to the Unix <code class=\"literal\">\/dev\/null<\/code> device. Queries always return an empty set. These tables can be used in replication configurations where DML statements are sent to slave servers, but the master server does not keep its own copy of the data.<\/li>\n<li class=\"listitem\"><a class=\"link\" title=\"15.7 The MERGE Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/merge-storage-engine.html\"><code class=\"literal\">Merge<\/code><\/a>: Enables a MySQL DBA or developer to logically group a series of identical <code class=\"literal\">MyISAM<\/code> tables and reference them as one object. Good for VLDB environments such as data warehousing.<\/li>\n<li class=\"listitem\"><a class=\"link\" title=\"15.8 The FEDERATED Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/federated-storage-engine.html\"><code class=\"literal\">Federated<\/code><\/a>: Offers the ability to link separate MySQL servers to create one logical database from many physical servers. Very good for distributed or data mart environments.<\/li>\n<li class=\"listitem\"><a class=\"link\" title=\"15.9 The EXAMPLE Storage Engine\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/example-storage-engine.html\"><code class=\"literal\">Example<\/code><\/a>: This engine serves as an example in the MySQL source code that illustrates how to begin writing new storage engines. It is primarily of interest to developers. The storage engine is a <span class=\"quote\">\u201c<span class=\"quote\">stub<\/span>\u201d<\/span> that does nothing. You can create tables with this engine, but no data can be stored in them or retrieved from them.<\/li>\n<\/ul>\n<\/div>\n<p>You are not restricted to using the same storage engine for an entire server or schema. You can specify the storage engine for any table. For example, an application might use mostly<code class=\"literal\">InnoDB<\/code> tables, with one <code class=\"literal\">CSV<\/code> table for exporting data to a spreadsheet and a few <code class=\"literal\">MEMORY<\/code> tables for temporary workspaces.<\/p>\n<p><span class=\"bold\"><strong>Choosing a Storage Engine<\/strong><\/span><\/p>\n<p>The various storage engines provided with MySQL are designed with different use cases in mind. The following table provides an overview of some storage engines provided with MySQL:<\/p>\n<div class=\"table\">\n<p><a name=\"idm140174680458288\"><\/a><\/p>\n<p class=\"title\"><b>Table 15.1 Storage Engines Feature Summary<\/b><\/p>\n<div class=\"table-contents\">\n<table border=\"1\" summary=\"Storage Engines Feature Summary\">\n<colgroup>\n<col class=\"feature\" \/>\n<col class=\"myisam\" \/>\n<col class=\"memory\" \/>\n<col class=\"innodb\" \/>\n<col class=\"archive\" \/>\n<col class=\"ndb\" \/><\/colgroup>\n<thead>\n<tr>\n<th scope=\"col\">Feature<\/th>\n<th scope=\"col\">MyISAM<\/th>\n<th scope=\"col\">Memory<\/th>\n<th scope=\"col\">InnoDB<\/th>\n<th scope=\"col\">Archive<\/th>\n<th scope=\"col\">NDB<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td scope=\"row\">Storage limits<\/td>\n<td>256TB<\/td>\n<td>RAM<\/td>\n<td>64TB<\/td>\n<td>None<\/td>\n<td>384EB<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Transactions<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Locking granularity<\/td>\n<td>Table<\/td>\n<td>Table<\/td>\n<td>Row<\/td>\n<td>Row<\/td>\n<td>Row<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">MVCC<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Geospatial data type support<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Geospatial indexing support<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>Yes<a class=\"footnote\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#ftn.idm140174680436496\" name=\"idm140174680436496\"><sup class=\"footnote\">[a]<\/sup><\/a><\/td>\n<td>No<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">B-tree indexes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">T-tree indexes<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Hash indexes<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<td>No<a class=\"footnote\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#ftn.idm140174680428624\" name=\"idm140174680428624\"><sup class=\"footnote\">[b]<\/sup><\/a><\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Full-text search indexes<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>Yes<a class=\"footnote\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#ftn.idm140174680425664\" name=\"idm140174680425664\"><\/a><\/td>\n<td>No<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Clustered indexes<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Data caches<\/td>\n<td>No<\/td>\n<td>N\/A<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Index caches<\/td>\n<td>Yes<\/td>\n<td>N\/A<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Compressed data<\/td>\n<td>Yes<a class=\"footnote\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#ftn.idm140174680416048\" name=\"idm140174680416048\"><sup class=\"footnote\">[d]<\/sup><\/a><\/td>\n<td>No<\/td>\n<td>Yes<a class=\"footnote\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#ftn.idm140174680414736\" name=\"idm140174680414736\"><sup class=\"footnote\">[e]<\/sup><\/a><\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Encrypted data<a class=\"footnote\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#ftn.idm140174680412960\" name=\"idm140174680412960\"><sup class=\"footnote\">[f]<\/sup><\/a><\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Cluster database support<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Replication support<a class=\"footnote\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#ftn.idm140174680407520\" name=\"idm140174680407520\"><sup class=\"footnote\">[g]<\/sup><\/a><\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Foreign key support<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Backup \/ point-in-time recovery<a class=\"footnote\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#ftn.idm140174680402112\" name=\"idm140174680402112\"><sup class=\"footnote\">[h]<\/sup><\/a><\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Query cache support<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\">Update statistics for data dictionary<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<\/tbody>\n<tbody class=\"footnotes\">\n<tr>\n<td colspan=\"6\">\n<div id=\"ftn.idm140174680436496\" class=\"footnote\">\n<p><a class=\"para\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#idm140174680436496\"><sup class=\"para\">[a] <\/sup><\/a>InnoDB support for geospatial indexing is available in MySQL 5.7.5 and higher.<\/p>\n<\/div>\n<div id=\"ftn.idm140174680428624\" class=\"footnote\">\n<p><a class=\"para\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#idm140174680428624\"><sup class=\"para\">[b] <\/sup><\/a>InnoDB utilizes hash indexes internally for its Adaptive Hash Index feature.<\/p>\n<\/div>\n<div id=\"ftn.idm140174680425664\" class=\"footnote\">\n<p>InnoDB support for FULLTEXT indexes is available in MySQL 5.6.4 and higher.<\/p>\n<\/div>\n<div id=\"ftn.idm140174680416048\" class=\"footnote\">\n<p><a class=\"para\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#idm140174680416048\"><sup class=\"para\">[d] <\/sup><\/a>Compressed MyISAM tables are supported only when using the compressed row format. Tables using the compressed row format with MyISAM are read only.<\/p>\n<\/div>\n<div id=\"ftn.idm140174680414736\" class=\"footnote\">\n<p><a class=\"para\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#idm140174680414736\"><sup class=\"para\">[e] <\/sup><\/a>Compressed InnoDB tables require the InnoDB Barracuda file format.<\/p>\n<\/div>\n<div id=\"ftn.idm140174680412960\" class=\"footnote\">\n<p><a class=\"para\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#idm140174680412960\"><sup class=\"para\">[f] <\/sup><\/a>Implemented in the server (via encryption functions), rather than in the storage engine.<\/p>\n<\/div>\n<div id=\"ftn.idm140174680407520\" class=\"footnote\">\n<p><a class=\"para\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#idm140174680407520\"><sup class=\"para\">[g] <\/sup><\/a>Implemented in the server, rather than in the storage engine.<\/p>\n<\/div>\n<div id=\"ftn.idm140174680402112\" class=\"footnote\">\n<p><a class=\"para\" href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html#idm140174680402112\"><sup class=\"para\">[h] <\/sup><\/a>Implemented in the server, rather than in the storage engine.<\/p>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>\ucd9c\ucc98 :\u00a0https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/storage-engines.html &nbsp; MySQL 5.7 Supported Storage Engines InnoDB: The default storage engine in MySQL 5.7. InnoDB is a transaction-safe (ACID compliant) storage engine for MySQL that has commit, rollback, and crash-recovery capabilities to protect user data. InnoDB row-level locking (without escalation to coarser granularity locks) and Oracle-style consistent nonlocking reads increase multi-user concurrency and performance. InnoDB stores user data in clustered indexes to reduce I\/O for common queries based on primary keys. To maintain data integrity, InnoDB also supports FOREIGN KEY referential-integrity constraints. For more information about InnoDB, see Chapter 14, The InnoDB Storage Engine. MyISAM: These tables have a small footprint. Table-level locking limits the performance in read\/write workloads, so it is often used in read-only or read-mostly workloads in Web and data warehousing configurations. Memory: Stores all data in RAM, for fast access in environments that require <a class=\"mh-excerpt-more\" href=\"https:\/\/jirak.net\/wp\/mysql-5-7-supported-storage-engines\/\" title=\"MySQL 5.7 Supported Storage Engines\">[ more&#8230; ]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":927,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[356],"tags":[544,547,546,498,545,195,548],"class_list":["post-988","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-db","tag-5-7","tag-engine","tag-engines","tag-mysql","tag-storage","tag-supported","tag-548"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/posts\/988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/comments?post=988"}],"version-history":[{"count":4,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/posts\/988\/revisions"}],"predecessor-version":[{"id":1013,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/posts\/988\/revisions\/1013"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/media\/927"}],"wp:attachment":[{"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/media?parent=988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/categories?post=988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jirak.net\/wp\/wp-json\/wp\/v2\/tags?post=988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}