MySQL学习笔记1-MySQL Architecture

Architecture

Note the difference between a server and a host:
o Server: A software program (mysqld) with a version number and a list of features
o Host: The physical machine on which the server program runs, which includes the following:
-Its hardware configuration
-The operating system running on the machine
-Its network addresses
Multiple mysqld instances can run simultaneously on one host.
The configuration of the MySQL server evolves from one product version to the next. Always consult the product documentation for the most up-to-date configuration information.
For more information about the MySQL server, see the MySQL Reference Manual: http://dev.mysql.com/doc/mysql/en/programs-server.html.

The mysqld (server program) process can be sliced into the following three layers:
o Connection layer: Handles connections. This layer exists on all server software (Web/mail/LDAP server).
o SQL layer: Processes SQL queries that are sent by connected applications
o Storage layer: Handles data storage. Data can be stored in different formats and structures on different physical media.

Connection layer

The connection layer accepts connections from applications over several communication protocols:
o TCP/IP
o UNIX sockets
o Shared memory
o Named pipes 


TCP/IP works across the network. The other protocols listed above support only local connections when the client and server are running on the same machine. This layer maintains one thread per connection. This thread handles query execution. 
Before a connection can begin sending SQL queries, the connection is authenticated by verification of username + password + client host. 
MySQL uses DNS (Domain Naming System) to resolve the names of hosts that connect using TCP/IP protocol, storing them in a host cache. For large networks that exhibit performance problems during name resolution, disable DNS with the --skip-name-resolve option, or increase the value of the --host-cache-size option.


communication protocols:
o TCP/IP (Transmission Control Protocol/Internet Protocol): The suite of communication protocols used to connect hosts on the Internet. In the Linux operating system, TCP/IP is built-in and is used by the Internet, making it the standard fo
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值