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


advertisement
 

Tip: Types of Engines that Are Supported in MySQL

See how to use the query in the example to display the list of available engines that are supported in MySQL.


advertisement

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.

 

Visit the DevX Tip Bank

 



   
Sridhar M S. is a Java developer from Bangalore, India. He holds a master's degree in Computer Science.
Thanks for your registration, follow us on our social networks to keep up-to-date