MySQL Storage engine (engine: Processor for processing tables)

Source: Internet
Author: User

1, the basic Operation command:
1. View all Storage engines
Show engines;
2, view the existing table storage engine;
Show create table table name;
3. Create the storage engine specified by the table
CREATE TABLE table name (...). ) Engine=myisam,charset=utf8;
4. Existing tables change the storage engine
ALTER TABLE name engine = MyISAM
2, the characteristics of common storage engine:
1. InnoDB Features
1, support transactions, foreign keys, row-level locks
2. Shared tablespace (path:/var/lib/mysql)
Table name. frm: Table structure and index information
Table name. IBD: Table Record
2. MyISAM Features
1, Support table-level lock
2. Exclusive table Space
Table name. frm: Table structure
The table name. MYD: (mydata) Table record
The table name. MYI: (myindex) index information
3. Memory Memory engine
1. Data stored in memory, fast
2, the server restarts, the MySQL service restarts after the table record disappears
3. How to decide which storage engine to use
1. Use MyISAM (waste resources using INNODB) to perform query operations with multiple tables
2. Use InnoDB to perform multiple write operations

MySQL Storage engine (engine: Processor for processing tables)

Related Article

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.