# 16.11 MySQL逻辑架构

## mysql架构

mysql架构分为三层：

1. 服务层：为客户请求做连接处理、授权认证、安全等
2. 核心层：查询解析，分析，优化，缓存，所有内建函数；存储过程，触发器，视图等
3. 存储引擎层：存储和提取数据以及事务处理

![](/files/-M0cMUow34lwkDSErYGz)

### 服务层

​ ![](/files/-M0cMUoyvI_MfG0MCtpP)

### 核心层

​ ![](/files/-M0cMUp4Qj8zgbvJr7iM)

### 存储引擎层

​ ![](/files/-M0cMUp6W5YRy-m0X92A)

## 总图

​ ![](/files/-M0cMUp8J7INOrX-IO0t)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.clay-wangzhi.com/16-mysql/16.11-mysql-luo-ji-jia-gou.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
