当前位置:网站首页>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 !
边栏推荐
- 强化学习-学习笔记3 | 策略学习
- Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
- [loss functions of L1, L2 and smooth L1]
- [pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
- MySQL storage engine
- [yolov3 loss function]
- Time tools
- Get all stock data of big a
- Why do you always fail in automated tests?
- Learn memory management of JVM 01 - first memory
猜你喜欢
[calculation of loss in yolov3]
Four operations and derivative operations of MATLAB polynomials
Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
abap查表程序
MySQL index - extended data
多表操作-子查询
MySQL splits strings for conditional queries
MySQL storage engine
Understand kotlin from the perspective of an architect
随机推荐
Read and understand the rendering mechanism and principle of flutter's three trees
Error modulenotfounderror: no module named 'cv2 aruco‘
SENT协议译码的深入探讨
Simply solve the problem that the node in the redis cluster cannot read data (error) moved
Get data from the database when using JMeter for database assertion
Reinforcement learning - learning notes 3 | strategic learning
Check the debug port information in rancher and do idea remote JVM debug
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
手机 CPU 架构类型了解
图像超分实验:SRCNN/FSRCNN
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
One article tells the latest and complete learning materials of flutter
Wireless WiFi learning 8-channel transmitting remote control module
Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
ACID事务理论
Semantic segmentation experiment: UNET network /msrc2 dataset
MySQL basic operation -dql
Principle of redis cluster mode
Embedded software architecture design - message interaction