Illustrated MySQL Query execution flow

Source: Internet
Author: User

650) this.width=650; "src=" http://img0.tuicool.com/ZvUzE3.jpg "alt=" Zvuze3.jpg "/>

1. Query the cache, determine whether the SQL statement exactly match, and then determine whether there is permission, two judgment is false to the parser parsing statements, for the true extraction of data results returned to the user.

2. Parser parsing. Parser first lexical analysis, syntax analysis, check errors such as quotation marks have not closed, and then generate a parse tree.

3. pretreatment. Preprocessing solves the semantics of unresolved parsers, such as checking the existence of tables and columns, whether aliases are incorrect, and generating a new parse tree.

4. Optimizer does a lot of optimization operations.

5. Generate the execution plan.

6. Query execution engine, responsible for scheduling engine to obtain the corresponding data

7. Return the results.


This article is from "Smile_ Youth" blog, please be sure to keep this source http://smileyouth.blog.51cto.com/7273768/1669847

Illustrated MySQL Query execution flow

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.