Iv. MySQL Architecture

Source: Internet
Author: User
Tags connection pooling types of tables


MySQL Architecture
Connection pooling Management tool SQL Interface Analyzer optimizer cache storage engine file system


What is a storage engine
processors with different types of tables, different storage engines have different functions and storage methods

Available as pluggable components
Responsible for performing the actual data I/O operations for the database, different storage engines, and the way they store data
The user accesses the MySQL database through the connector, and according to the actual need to choose which kind of storage engine, avoids the big coding change

The default storage engine
MySQL 5.0/5.1:myisam
MySQL 5.5/5.6:innodb

What storage engines does MySQL support? Show engines;

What are the common storage engines? Myiasm InnoDB

What are the characteristics of common storage engines?

Myiasm
Exclusive table Space
USER.FRM user. MYD user. MYI
Table Structure Data index information
Transaction not supported
Table-Level Locks

InnoDB
Shared table Spaces
A.frm A.IBD
Table structure Data + index information

Support for transactional transaction rollback foreign keys
Transaction log
Ibdata1
Ib_logfile0
Ib_logfile1
Transaction? The process of a SQL operation from start to finish


To view available storage engine types
Show engines;

Manually specify when a table is built
CREATE TABLE Baitao (LF int (3)) Engine=innodb;
Change the storage engine for an existing table
ALTER TABLE Baitao Engine=myisam;

Set the default storage engine
Modifying the/ETC/MY.CNF configuration file
Default-storage-engine=xxx

This article is from the "Zhengerniu" blog, make sure to keep this source http://liufu1103.blog.51cto.com/9120722/1656827

Iv. MySQL Architecture

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.