MySQL Learning (1)

Source: Internet
Author: User

1. See MySQL is the client server mode.

2. How do we manipulate the database?

A. Direct SQL, various programming languages,

3. How does the client and server communicate?

All C/S mode will own the protocol, but are based on the TCP/IP protocol, there is Socekt communication under Linux, the port number is 3306

4. A simple SQL process is as follows;

1 User Login using Mysql-u-root

2. The server receives the request, the Connection Management module (manages a large number of threads), assigns a thread to the user,

3. Thread Call User Management module Verify user's account password Yes No, then release,

4. The user starts typing sleletc (query) update Delete (data manipulation language), show status (the state of the database), and SQL commands such as the CREATE table (data definition Language).

5. The command dispatcher assigns the above input SQL to each module according to the type, and the SELETC is the most complex, which corresponds to the query optimizer. At the same time in the query process if there is a query cache, you do not have access to the database, directly from the cache, in the process there will be log records, what are the logs?

6. To access the contents of the file, you also have permissions, each user has their own permissions, so have permission to check the module, and then through the storage engine processing.

Ref

http://blog.csdn.net/hguisu/article/details/7106342

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.