NOTE

1.14 MySQL Architecture

MySQL requests pass through connection management and query-processing components. These notes organize the architecture along the path of a client request.

DatabasesCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

1. MySQL Logical Architecture Diagram

  • MySQL Logical Architecture
  1. The client sends a request to the server.
  2. The server’s connection manager handles connections.
  3. The server’s query optimizer handles SQL.
    • After a query statement is parsed, it is handed to the query optimizer for optimization. The result of optimization is a so-called execution plan.
    • This execution plan indicates which indexes should be used for the query and what the join order between tables should be.
  4. Finally, according to the steps in the execution plan, methods provided by the storage engine are called to actually execute the query and return the query result to the user.

2. MySQL Components

2.1. Server Layer

  • Contains the components responsible for MySQL’s functionality.

2.1.1. Connector

2.1.2. Parser

2.1.3. Optimizer

2.1.4. Executor

2.2. Storage Engine

3. References

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub