In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The following mainly brings you how Mysql database executes sql statements. I hope these words can bring you practical use. This is also the main purpose of this article that I edit Mysql database how to execute sql statements. All right, don't talk too much nonsense, let's just read the following.
MySQL logical architecture
You must have heard the saying, "Mysql is a plug-in storage engine." So what is a plug-in storage engine? Let's first take a look at the overall architecture of Mysql.
As can be seen from the above figure, mysql is made up of the following components.
Client:
Strictly speaking, different people may have different understandings of whether the client is the content of the entire architecture. I personally understand that it should be included, or that is to say, the entire architecture of mysql must include the output interface, and the client is the implementation of this interface. Core services:
This contains a lot of content, generally speaking, there are the following parts:
1) connection pooling components: manage caching requirements such as buffering user connections, threading, etc.
2) manage services and tool components
3) sql interface component: accepts the user's SQL command and returns the results that the user needs to query
4) query Analyzer component: the SQL command is validated and parsed by the parser when it is passed to the parser
5) Optimizer components: optimize incoming SQL
6) caching component; Storage engine:
Here is what we call plug-in storage engine, you can choose InnoDB,MyISAM,NDB and so on; physical files:
The database corresponds to the underlying data file
The execution process of MySQL:
You can use the following figure to explain how sql is executed.
1.Mysql client establishes communication with Mysql CVM
two。 Query whether there is a cache of results in the cache, if so, return it directly; if not, you need to create a new query
3.sql syntax parsing
4. Optimize sql
5. The optimized sql is handed over to the storage engine, which executes and returns the result.
6. The cache module records the results and returns data.
For the above about how the Mysql database executes sql statements, we do not think it is very helpful. If you need to know more, please continue to follow our industry information. I'm sure you'll like it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.