当前位置:网站首页>How does MySQL execute an SQL statement?
How does MySQL execute an SQL statement?
2022-07-05 12:16:00 【The king of early rising】
hold sql There are two kinds of statements : Inquire about and to update . Let's talk about it separately .
Query statement
- Connector operation , Determine the account and password , Query user permissions .
- The query cache , If there is no cache, it is going down . If there is , Direct return .(MySQL8.0 Then there is no such step )
- The analyzer analyzes sql Is the statement legal , And get the function of the sentence .
- Optimizer optimization SQL sentence , For example, adjust the index order .
- The actuator first determines whether the user has permission , Then invoke the engine. , Return the execution result of the engine or return error information .
UPDATE statement
- First query the data to be updated
- Get the query statement , Make changes .
- call API Interface , Write this line of data ,InnoDB The engine saves the data in memory , Simultaneous recording redo log. here redo log Enter as prepare state .
- Send completion to the actuator , Signals that can be submitted .
- Actuator record binlog.
- Call engine interface , Submit redo log Is submitted status .
there redo log and binlog What is it? ? And why two log modules are used , You can refer to the blog below .
Keep early hours , take care . The king of early rising wishes you a thousand miles a day !
边栏推荐
- 互联网公司实习岗位选择与简易版职业发展规划
- 想问问,如何选择券商?在线开户是很安全么?
- vscode快捷键
- Pytorch MLP
- 手机 CPU 架构类型了解
- Redirection of redis cluster
- 一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
- Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
- Automated test lifecycle
- Redis master-slave mode
猜你喜欢

MySQL index (1)

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

Principle of redis cluster mode

Get data from the database when using JMeter for database assertion
![[upsampling method opencv interpolation]](/img/6b/5e8f3c2844f0cbbbf03022e0efd5f0.png)
[upsampling method opencv interpolation]
A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"

Pytorch MLP

Matlab label2idx function (convert the label matrix into a cell array with linear index)

Uniapp + unicloud + Unipay realize wechat applet payment function

MySQL index - extended data
随机推荐
Redis master-slave mode
Video networkState 属性
Reinforcement learning - learning notes 3 | strategic learning
Take you two minutes to quickly master the route and navigation of flutter
Understanding the architecture type of mobile CPU
MySQL index (1)
多表操作-子查询
PXE启动配置及原理
codeforces每日5题(均1700)-第五天
PXE startup configuration and principle
Reading notes of growth hacker
Application of a class of identities (vandermond convolution and hypergeometric functions)
Riddle 1
Image hyperspectral experiment: srcnn/fsrcnn
1 plug-in to handle advertisements in web pages
Embedded software architecture design - message interaction
How to clear floating?
Tabbar configuration at the bottom of wechat applet
2022年国内云管平台厂商哪家好?为什么?
HiEngine:可媲美本地的云原生内存数据库引擎