Introduction: This article mainly introduces how to configure MySQL to support IPV6 connections under the Linux system. Environmental requirements: 1. Debian7.5 operating system virtual machine 2. The mysql5.6 version of the database has been successfully installed on the debian7.5 system and can be connected normally through the IPV4 address Configuration Method 1. Confirm whether the system supports IPV6. Enter the command ping6 ::1. The following figure will be displayed to indicate that the IPV6 address is supported. 2. If not supported, configure the network card eth0 to add an IPV6 address 1) Enter the command vim /etc/network/interfaces to add the inet6 network card configuration 2) Enter the commands ifdown eth0 and ifup eth0 to restart the network card and make the configuration take effect. 3. Configure mysql to allow IPv6 connections 1) Modify the my.cnf configuration file and add the bind-address = :: configuration under the [mysqld] option. Configuring bind-address to :: can ensure that TCP/IP connections that support both IPV4 and IPV6 are supported. 2) Create an IPV6 user for the database that can only connect locally, and first use the IPV4 user to log in to the MySQL database 3) Execute the command CREATE USER 'ipv6test'@'::1' IDENTIFIED BY '123456'; to create a user 4) 4. Verify that the MySQL database is connected locally through ::1. Enter the command mysql -h ::1 -uipv6test -p123456. The following figure is displayed to indicate that the connection is successful. Summarize The above is the method that I introduced to you to configure MySQL 5.6 to support IPV6 connection in Linux environment. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Detailed tutorial on installing ElasticSearch 6.4.1 on CentOS7
>>: How to use JavaScript strategy pattern to validate forms
This article shares the specific code of JavaScri...
Solution to "Could not run curl-config"...
Table of contents 1. Introduction 2. The differen...
Alibaba Cloud purchases servers Purchase a cloud ...
Frequently asked questions When you are new to ea...
I am planning to organize the company's inter...
Table of contents Code Optimization Using key in ...
Table of contents 1. Isolation Level READ UNCOMMI...
This article shares the specific code for React t...
closure service nginx stop systemctl stop nginx s...
This article uses an example to describe how to c...
Table of contents Solution Analysis slice Resume ...
There are already many articles about slot-scope ...
This article shares the installation tutorial of ...
This article example shares the specific code of ...