Mysql 体系结构系列之五

前言:接上一篇Mysql 体系结构系列之四: 核心模块之间的交互

                Mysql 体系结构系列之四 : http://blog.csdn.net/u010993297/article/details/9663953

1. 核心模块之间的交互 Interaction of the Core Modules

<<-------第十段 讲的是怎样处理查询或命令(失败/成功)--控制权-连接线程------>>

As the query or command is being processed, the corresponding module may send parts of the result set to the client as they become available. It may also send warnings or an error message.

在处理查询或命令的时候,相应的模块可能会将已得出的部分结果发送给客户端,也可能发送警号或错误信息。

 

If an error message is issued, both the client and the server will understand that the query or command has failed and take the appropriate measures.

如果发送了出错信息,客户端和服务器都会理解为查询或命令已经失败,并会采取相应的措施。


The client will not accept any more result set, warning, or error message data for the given query, while the server will always transfer control to the Connection Thread after issuing an error.

客户端将不再接受给定查询的任何结果集,警告或出错信息数据,而且在发出出错信息后,服务器始终将控制权传送给连接线程。

 

Note that since MySQL does not use exceptions for reasons of implementation stability and portability, all calls on all levels must be checked for errors with the appropriate transfer of control in the case of failure.

注意,出于实现的稳定性和可移植性的考虑,Mysql也不例外,在出现故障时,会检查所有层次上的所以调用,同时适当地转移控制。

 

<<-------第十一段 讲的是二进制更新日志------>>

If the low-level module has made a modification to the data in some way and if the binary update logging is enabled,

如果低层次模块以某种方式修改了数据,而且二进制更新日志是启用的

 

the module will be responsible for asking the Logging Module to log the update event to the binary update log, sometimes known as the replication log, or, among MySQL developers and power users, the binlog.

那么该模块将负责要求日志记录模块把更新事件记录到二进制更新日志中,有时这个过程也被称为复制日志,但Mysql开发人员和高级用户称其为binlog

 

<<-------第十二段 讲的是执行流-连接线程------>>

Once the task is completed, the execution flow returns to the Connection Thread,which performs the necessary clean-up and waits for another query or command from the client.

一旦任务完成,执行流就返回给连接线程,该线程将执行必要的清空工作,等待来自客户端的下一个查询或命令。

 

The session continues until the client issues the Quit command.

会话会继续进行直至客户端发出Quit命令退出。

 

<<-------第十三段 讲的是主复制服务器模块------>>

In addition to interacting with regular clients, a server may receive a command from a replication slave to continuously read its binary update log.

除了与常规客户端交互,服务器可能还要收取来自从复制服务器的命令,不断读取其二进制更新日志

 

This command will be handled by the Replication Master Module.

这类命令将由主复制服务器模块处理。

 

待续。。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MySQL体系结构由几个关键组件组成,可以分为四层。首先是文件系统层,它负责管理数据库文件的存储和管理。接下来是存储引擎层,这是MySQL的核心所在,负责数据的存储和提取。每个存储引擎都有其独特的特点和优势。然后是SQL层,它包括连接池、SQL接口、解析器和优化器。连接池负责管理数据库连接,SQL接口提供与数据库的交互接口,解析器将SQL语句转换为可执行的指令,优化器则负责优化SQL语句的执行计划。最后是Server层,它是MySQL的最外层,负责处理客户端的请求和协调各个组件之间的交互。总体来说,MySQL体系结构是一个多层次的结构,每一层都有其特定的功能和责任,共同协作以提供可靠高效的数据库服务。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [MySQL体系结构](https://blog.csdn.net/qq_44969643/article/details/125096249)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [MySQL系列-MySQL体系结构](https://blog.csdn.net/weixin_42094855/article/details/125207426)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值