当前位置:网站首页>struct MySQL
struct MySQL
2022-07-05 12:16:00 【The king of early rising】
First, start with the structure , Then analyze the execution process in terms of query and update operations
MySQL Structure
MySQL Its structure is divided into two layers :
Sever Layers and storage engines . This paper aims at InnoDB Engine to analyze .
Sever layer
The connector
The function of the connector is to detect login .
Check the account and password , Then check the permissions of the user . As the authority basis for all subsequent operations of the user .
Be careful : After modifying the permission of a user , You need to reconnect to take effect . Such as continuous disconnection , Permissions are still old .
The query cache
stay MySQL8.0 Remove later .
Follow cpu Caching is similar , When executing a statement , First, look in the cache , If you find it , Just operate in the cache , Synchronize updates to the database . Changes to the database will also be updated in the cache , To ensure consistency .
Why not , Because in practice ,MySQL Cache invalidation is very frequent . Later, it was no longer used .
analyzer
The analyzer has two steps , To check whether the statement is reasonable , And what the sentence does .
- Lexical check . This step will check the keywords in the statement , Include table name 、 Name 、select、 Query conditions, etc .
- Syntax check . Check whether the sentence conforms to the grammar .
Optimizer
The optimizer is to make MySQL Execute in the best way he thinks . For example, how to select indexes when there are multiple indexes , How to select Association order when querying multiple tables .
After the optimizer , One SQL How to execute the statement , It's all set .
actuator
First step : Verify user rights , That is, the user permissions queried by the connector are used .
If not, an error message will be returned , If permission permits , Then call the interface of the engine , Returns the result of the interface execution .
Keep early hours , take care . The king of early rising wishes you good luck !
边栏推荐
- Matlab imoverlay function (burn binary mask into two-dimensional image)
- Semantic segmentation experiment: UNET network /msrc2 dataset
- GPS data format conversion [easy to understand]
- ACID事务理论
- Recyclerview paging slide
- The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
- 一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
- 2022年国内云管平台厂商哪家好?为什么?
- Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
- Open3d mesh (surface) coloring
猜你喜欢
![[singleshotmultiboxdetector (SSD, single step multi frame target detection)]](/img/c7/8ad64582e09683818171b625769f37.png)
[singleshotmultiboxdetector (SSD, single step multi frame target detection)]

The evolution of mobile cross platform technology

mmclassification 训练自定义数据

Check the debug port information in rancher and do idea remote JVM debug

Codeworks 5 questions per day (1700 average) - day 5

Matlab imoverlay function (burn binary mask into two-dimensional image)

Reading notes of growth hacker

Network five whip
![[yolov3 loss function]](/img/79/87bcc408758403cf3993acc015381a.png)
[yolov3 loss function]

Matlab superpixels function (2D super pixel over segmentation of image)
随机推荐
什么是数字化存在?数字化转型要先从数字化存在开始
Hiengine: comparable to the local cloud native memory database engine
16 channel water lamp experiment based on Proteus (assembly language)
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
Take you two minutes to quickly master the route and navigation of flutter
Select drop-down box realizes three-level linkage of provinces and cities in China
想问问,如何选择券商?在线开户是很安全么?
A new WiFi option for smart home -- the application of simplewifi in wireless smart home
Open3d European clustering
Basic operations of MySQL data table, addition, deletion and modification & DML
Wireless WiFi learning 8-channel transmitting remote control module
MySQL index (1)
MySQL regular expression
Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
Swift - enables textview to be highly adaptive
Complete activity switching according to sliding
How to recover the information server and how to recover the server data [easy to understand]
Redirection of redis cluster
语义分割实验:Unet网络/MSRC2数据集
投资理财适合女生吗?女生可以买哪些理财产品?