As of MySQL 5.5.3, support for IPv6 includes these capabilities:
MySQL Server can accept TCP/IP connections from clients connecting over IPv6. For example, this command connects over IPv6 to the MySQL server on the local host:
shell> mysql -h ::1
To use this capability, two things must be true:
Your system must be configured to support IPv6. See Section 5.1.9.1, “Verifying System Support for IPv6”.
The default MySQL server configuration permits only IPv4
connections, so the server must be configured for IPv6
connections. To permit IPv6 connections in addition to or
instead of IPv4 connections, start the server with an
appropriate --bind-address
option. See Section 5.1.5, “Server System Variables”.
MySQL account names permit IPv6 addresses to enable DBAs to
specify privileges for clients that connect to the server over
IPv6. See Section 6.2.3, “Specifying Account Names”. IPv6 addresses can
be specified in account names in statements such as
CREATE USER,
GRANT, and
REVOKE. For example:
mysql>CREATE USER 'bill'@'::1' IDENTIFIED BY 'secret';mysql>GRANT SELECT ON mydb.* TO 'bill'@'::1';
The following sections describe how to set up MySQL so that clients can connect to the server over IPv6.