Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mysql communication protocol

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Mysql four communication protocols "> Mysql four communication protocols (all the local connections under linux are socket and the others are tcp)

When connecting to mysql, using-h227.0.0.1, the connection protocol between linux and unix is socket protocol, and that under windows is memory protocol.

For example, [root@mysql] # mysql-uandy-pandy-h227.0.0.1

When connecting to mysql, use the tcp/ip protocol when using non-h227.0.0.1.

For example: [root@mysql ~] # mysql-uandy-pandy

The different communication protocols used to interact with MySQL server are described in detail below:

1.TCP/IP protocol

> Transmission Control Protocol (Transmission Control Protocol) / Internet Protocol (Internet Protocol) is a set of communication protocols used to connect hosts on the Internet. TCP/IP was originally used for the UNIX operating system to establish Internet communications. Now it has become a de facto standard for network data transmission. Even network operating systems with their own communication protocols, such as Netware, support the TCP/IP protocol.

2. Unix Socket protocol

In the computer world, an socket is a form of internal process communication that is used to form a two-way communication connection point (a physical file on the local system) between processes on the same host.

3. Share Memory protocol

An effective way to transfer data between programs. A program creates a memory area to provide access to other allowed processes. The Windows explicit "passive" connection mode only works on (Windows system) hosts.

4. NT pipeline

> this named pipe design is more inclined to client-server communication, and they are more like socket: in addition to being used for normal read and write operations, Windows named pipes also support explicit "passive" passive connection mode for server applications. Run only in a separate (Windows platform) host.

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report