当前位置:网站首页>Advanced learning of MySQL -- Application -- storage engine
Advanced learning of MySQL -- Application -- storage engine
2022-07-04 01:59:00 【Magic pig 9898】
mysql Architecture of

Work of all levels
adjoining course
Mainly completes some similar to the connection processing , Authorized certification , And related safety programs , The server will also verify the operation authority of each client for secure access .
Service layer
The second layer mainly completes some core services , And complete the cache query , SQL Analysis and optimization of , Execution of some built-in functions , All the cross storage engine functions are also implemented in this layer . Like the process , Functions, etc .
Engine layer
The storage engine is really responsible for MySQL Storage and reading of data in , Server pass API Communicating with the storage engine , Different storage engines have different functions , In this way, according to our own needs , To choose the right storage engine .
Storage layer
It mainly stores the data on the file system , And complete the interaction with the storage engine
Introduction to storage engine
The storage engine is to store data , Index , to update / Implementation of query data and other technologies , The storage engine is table based , Not library based , So the storage engine is also called table type . ( To put it bluntly , In a database , The engine of each table may be different )
Query key table statement
Found that the default engine is InnoDB.
Query the storage engine supported by the current database
show engines ;
Specify the engine when creating the table
Storage engine features
InnoDB


InnoDB Logical storage structure

therefore
The table space corresponds to ibd file .
The obvious , Row is the smallest unit of storage , And what information does a line contain ?
Last transaction id, Some pointers , There are also field information .
stay InnoDB In the logic of
Page is the smallest unit of disk operation , And the size is fixed 16K, The size of the zone is fixed . yes 1M. It means that there are 64 page .
MyISAM

Files involved in disk 

Comparison summary

Storage engine selection
There is no good or bad engine , See the demand 
边栏推荐
- Portapack application development tutorial (XVII) nRF24L01 launch C
- Pyrethroid pesticide intermediates - market status and future development trend
- Conditional statements of shell programming
- What are the advantages and disadvantages of data center agents?
- SRCNN:Learning a Deep Convolutional Network for Image Super-Resolution
- MySQL introduction - functions (various function statistics, exercises, details, tables)
- Jerry's synchronous weather information to equipment [chapter]
- C import Xls data method summary IV (upload file de duplication and database data De duplication)
- Magical usage of edge browser (highly recommended by program ape and student party)
- Prose article appreciation - the rain in the warm country has never changed into cold, hard and brilliant flowers. Knowledgeable people think he is monotonous, and he thinks he is unlucky, doesn't he?
猜你喜欢

Learn these super practical Google browser skills, girls casually flirt

Make drop-down menu

Example 073 square sum value judgment programming requires the input of a and B, if a ²+ b ² If the result of is greater than 100, a is output ²+ b ² Value, otherwise output the result of a + B.

High level application of SQL statements in MySQL database (I)

Remember another interview trip to Ali, which ends on three sides
![After listening to the system clear message notification, Jerry informed the device side to delete the message [article]](/img/0c/52816b75eb702c7c63966578ab4969.jpg)
After listening to the system clear message notification, Jerry informed the device side to delete the message [article]

Huawei cloud micro certification Huawei cloud computing service practice has been stable

The boss said: whoever wants to use double to define the amount of goods, just pack up and go

Douban scoring applet Part-3
![When the watch system of Jerry's is abnormal, it is used to restore the system [chapter]](/img/fb/7d4a026260f8817460cc67f06e49ae.jpg)
When the watch system of Jerry's is abnormal, it is used to restore the system [chapter]
随机推荐
Servlet simple verification code generation
Iclr2022 | ontoprotein: protein pre training integrated with gene ontology knowledge
Introduction to graphics: graphic painting (I)
The reasons why QT fails to connect to the database and common solutions
LeetCode 168. Detailed explanation of Excel list name
Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
All metal crowns - current market situation and future development trend
Introduction to superresolution
The latest analysis of hoisting machinery command in 2022 and free examination questions of hoisting machinery command
How can enterprises optimize the best cost of cloud computing?
LeetCode226. Flip binary tree
Applet graduation design is based on wechat course appointment registration. Applet graduation design opening report function reference
What are the advantages and disadvantages of data center agents?
High level application of SQL statements in MySQL database (I)
[typora installation package] old typera installation package, free version
13. Time conversion function
Why can't it run (unresolved)
Jerry's watch listens to the message notification of the target third-party software and pushes the message to the device [article]
Idsia & supsi & usi | continuous control behavior learning and adaptive robot operation based on Reinforcement Learning
2022 R2 mobile pressure vessel filling certificate examination and R2 mobile pressure vessel filling simulation examination questions