当前位置:网站首页>Complete process of MySQL SQL
Complete process of MySQL SQL
2022-07-07 06:58:00 【Rookie ~ ~】
mysql client and mysql server When communicating , If you finish all the MySQL Server modular , It needs to pass through the connector in turn 、 Parser 、 Optimizer 、 actuator 、 Storage engine , As shown in the figure below :
- The connector : Use TCP Encrypted ssl Communication protocol , Manage connections , Control the maximum connection amount , Test connection duration , Authority verification ( Account password, etc ), Priority query cache ( Twice the same select There are update operations between , The query cache will be emptied )
- Parser : The same role as the compiler , To generate a syntax tree , analysis SQL Lexical and grammatical analysis
- Optimizer : Generate SQL Implementation plan and current SQL Selection of corresponding index (explain You can see )
- actuator : Call the storage engine corresponding API Interface to read and write data
- Storage engine : Cost disk I/O Read and write disk data , structure B+ Tree index , Transaction log (undo log/redo log), Locking mechanism , Isolation level …
class BaseEngine{
}
class MyISAM : public BaseEngine{
}
class InnoDB : public BaseEngine{
}
If a simple communication , The client will actively close the connection after receiving the result of this communication ,MySQL Server The connector is responsible for closing this connection , Recycle the resources of this connection .
边栏推荐
- 2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第一阶段答案
- LM11丨重构K线构建择时交易策略
- MOS tube parameters μ A method of Cox
- 数据资产管理与数据安全国内外最新趋势
- 2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第二阶段答案
- ANR 原理及实践
- Data of all class a scenic spots in China in 2022 (13604)
- MYSQL binlog相关命令
- Postgresql中procedure支持事务语法(实例&分析)
- Redhat5 installing vmware tools under virtual machine
猜你喜欢
[GNN] graphic gnn:a gender Introduction (including video)
RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`问题解决
Leetcode T1165: 日志分析
二十岁的我4面拿到字节跳动offer,至今不敢相信
Bus消息总线
Please answer the questions about database data transfer
DHCP路由器工作原理
联合索引ABC的几种索引利用情况
剑指offer-高质量的代码
Take you to brush (niuke.com) C language hundred questions (the first day)
随机推荐
多学科融合
[start from scratch] detailed process of deploying yolov5 in win10 system (CPU, no GPU)
请教一下,监听pgsql ,怎样可以监听多个schema和table
MySQL user permissions
Abnova循环肿瘤DNA丨全血分离,基因组DNA萃取分析
ip地址那点事
Performance comparison between Ceres solver and g2o
7天零基础能考证HCIA吗?华为认证系统学习路线分享
Matlab tips (30) nonlinear fitting lsqcurefit
Take you to brush (niuke.com) C language hundred questions (the first day)
MySQL SQL的完整处理流程
Problems and precautions about using data pumps (expdp, impdp) to export and import large capacity tables in Oracle migration
反射(二)
数据资产管理与数据安全国内外最新趋势
Several index utilization of joint index ABC
Navicat importing 15g data reports an error [2013 - lost connection to MySQL server during query] [1153: got a packet bigger]
Learning notes | data Xiaobai uses dataease to make a large data screen
MATLAB小技巧(29)多项式拟合 plotfit
请问 flinksql对接cdc时 如何实现计算某个字段update前后的差异 ?
How to share the same storage among multiple kubernetes clusters