MySQL Storage engine overview

Source: Internet
Author: User

MySQL tutorial is different from most database tutorials, there is a storage engine in MySQL, for different needs, users can choose the most suitable for their own storage engine, then there are many types of storage engine MySQL, and their advantages and disadvantages,

The MySQL engine has four kinds: myisam,innodb,bdb,memory,merge,example,ndb cluster,archive,csv,blackhole,federated and so on, other InnoDB, With BDB is providing a transaction security table, other storage engines are non-transactional security tables.

Here we look at the different tables of Jane.

First, MyISAM

MyISAM is the MySQL default storage engine, which does not support transaction processing and also does not support foreign keys, which has the advantage of being fast and not requiring transactional integrity.

MyISAM a datasheet, there are three table files on your hard disk that are. frm (storage table definition). MYD (Data storage table). MYI (store Index Table)

Second, InnoDB

InnoDB table automatic growth column, can be entered manually, but if the value is 0 or empty, then the actual insertion will be automatically increase the value of the InnoDB table automatic growth must be set to index, and MyISAM not required. It also supports foreign key constraints,

Third, memory

The Memery storage engine uses content stored in memory to create tables, and each memory table only actually corresponds to one hard drive file. The format is. frm,memory access speeds are faster than two, because the data is in memory and the default engine uses a hash index, but when the server shuts down, the data in the table is lost

Iv. Merge

The merge storage engine is a group of MyISAM tables that must have the same structure, the merge itself is not data, the tables of the merge type can be queried, deleted, updated, and so on, which are actually operating on the internal MyISAM, For the Merge Type table insert operation, the table is inserted through the INERT_METHOD clause, which can have 3 different values, first,last, not defined as the No table cannot insert operations on the merge.

Okay, here's a brief description of the common MySQL storage engine,

This site original tutorial reproduced annotated source Www.111cn.net

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.