dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL
Expertise: Intermediate
Dec 9, 2019

Types of Engines that Are Supported in MySQL

MySQL supports multiple types of storage engines. There are specific engines that are meant for specific needs. Understanding of these storage engines is beyond the scope of the current discussion.

Using the query below will display the list of available engines that are supported in MySQL. The details should be self explanatory.

Query

SHOW ENGINES;

Output:

+-----------------------+-----------+---------------------------------------------------------------+---------------+------+------------+
| 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        |
| MEMORY             |    YES       | Hash based, stored in memory, useful for temporary tables      | NO          | NO   | NO        |
| BLACKHOLE             |    YES       | /dev/null storage engine (anything you write to it disappears)| NO          | NO   | NO        |
| MyISAM             |    YES       | MyISAM storage engine                                  | NO          | NO   | NO        |
| CSV                |    YES       | CSV storage engine                                  | NO          | NO   | NO        |
| 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       |
+-----------------------+-----------+---------------------------------------------------------------+---------------+------+------------+

These values of Engine types can be used as needed by our project requirements and are typically used during table creation.

M S Sridhar
 
Thanks for your registration, follow us on our social networks to keep up-to-date