客户端:
server层:
连接器:
show processlist;
kill 26;关闭连接
show global variables like "wait_timeout"
查询缓存: 使用在配置表、字典表、树形菜单、权限结构、region
(8以后的版本没了5.7版本还有)
my.cnf query_cache_type 0关闭 1 开启 2 demand 按需使用 sql cache
select sql_cache * from test where id=5;
show status like "Qcache";

分析器:antlr4
优化器:生成执行计划、索引选择
执行器:调用引擎接口,获取执行结果
bin-log归档:

引擎层: