5.1.9.4 Connecting Using IPv6 Nonlocal Host Addresses

The following procedure shows how to configure MySQL to permit
IPv6 connections by remote clients. It is similar to the
preceding procedure for local clients, but the server and client
hosts are distinct and each has its own nonlocal IPv6 address.
The example uses these addresses:

Server host: 2001:db8:0:f101::1
Client host: 2001:db8:0:f101::2

These addresses are chosen from the nonroutable address range
recommended by
IANA
for documentation purposes and suffice for testing on your local
network. To accept IPv6 connections from clients outside the
local network, the server host must have a public address. If
your network provider assigns you an IPv6 address, you can use
that. Otherwise, another way to obtain an address is to use an
IPv6 broker; see Section 5.1.9.5, “Obtaining an IPv6 Address from a Broker”.

Start the MySQL server with an appropriate
--bind-address option to
permit it to accept IPv6 connections. For example, put the
following lines in your server option file and restart the
server: