当前位置:网站首页>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 !
边栏推荐
- Redis cluster (master-slave) brain crack and solution
- Simply solve the problem that the node in the redis cluster cannot read data (error) moved
- Why learn harmonyos and how to get started quickly?
- Flutter2 heavy release supports web and desktop applications
- MySQL regular expression
- JS for循环 循环次数异常
- byte2String、string2Byte
- 查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
- Time tools
- [loss functions of L1, L2 and smooth L1]
猜你喜欢
Automated test lifecycle
![[pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]](/img/ad/b96e9319212cf2724e0a640109665d.png)
[pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases
![[deploy pytoch project through onnx using tensorrt]](/img/b6/ec95f028f749753666c7877134ad70.png)
[deploy pytoch project through onnx using tensorrt]

Mmclassification training custom data

MySQL storage engine

abap查表程序
Why do you always fail in automated tests?

强化学习-学习笔记3 | 策略学习

Linux安装部署LAMP(Apache+MySQL+PHP)
随机推荐
Why do you always fail in automated tests?
你做自动化测试为什么总是失败?
Which domestic cloud management platform manufacturer is good in 2022? Why?
Check the debug port information in rancher and do idea remote JVM debug
Principle and performance analysis of lepton lossless compression
[HDU 2096] 小明A+B
Tabbar configuration at the bottom of wechat applet
想问问,如何选择券商?在线开户是很安全么?
Linux Installation and deployment lamp (apache+mysql+php)
MySQL trigger
mmclassification 训练自定义数据
Redis cluster (master-slave) brain crack and solution
Hiengine: comparable to the local cloud native memory database engine
Matlab label2idx function (convert the label matrix into a cell array with linear index)
MySQL data table operation DDL & data type
vscode快捷键
Conversion du format de données GPS [facile à comprendre]
Wireless WiFi learning 8-channel transmitting remote control module
2022年国内云管平台厂商哪家好?为什么?
Pytorch MLP