5.1.13.2 Configuring the MySQL Server to Permit IPv6 Connections配置MySQL服务器以允许IPv6连接

The MySQL server listens on one or more network sockets for TCP/IP connections. Each socket is bound to one address, but it is possible for an address to map onto multiple network interfaces.MySQL服务器在一个或多个网络套接字上监听TCP/IP连接。每个套接字都绑定到一个地址,但一个地址可以映射到多个网络接口上。

Set the bind_address system variable at server startup to specify the TCP/IP connections that a server instance accepts. 在服务器启动时设置bind_address系统变量,以指定服务器实例接受的TCP/IP连接。As of MySQL 8.0.13, you can specify multiple values for this option, including any combination of IPv6 addresses, IPv4 addresses, and host names that resolve to IPv6 or IPv4 addresses. 从MySQL 8.0.13开始,您可以为此选项指定多个值,包括IPv6地址、IPv4地址和解析为IPv6或IPv4地址的主机名的任意组合。Alternatively, you can specify one of the wildcard address formats that permit listening on multiple network interfaces. 或者,您可以指定一种允许在多个网络接口上侦听的通配符地址格式。A value of *, which is the default, or a value of ::, permit both IPv4 and IPv6 connections on all server host IPv4 and IPv6 interfaces. 默认值*或值::允许所有服务器主机IPv4和IPv6接口上的IPv4和IPv6连接。For more information, see the bind_address description in Section 5.1.8, “Server System Variables”.有关更多信息,请参阅第5.1.8节,“服务器系统变量”中的bind_address描述。