MySQL adds skip-name-resolve cannot link the database problem solution _mysql

Source: Internet
Author: User

MySQL adds skip-name-resolve can't link the problem,

To verify that MYSQL is authorized by the host name

In the MYSQL Server configuration file My.ini, add the following two lines:

[Mysqld]
Skip-name-resolve

It will prevent MySQL Server from DNS resolution of external connections, and this option eliminates the time that MySQL can perform DNS resolution.
Note, however, that if this option is turned on, all remote host connection authorizations will be in the IP address mode, otherwise MySQL won't be able to handle the connection request properly.
If the Skip-name-resolve option is turned on, verify that MYSQL is authorized by the host name.

Run the following command in MySQL:

Mysql> Select User,host from Mysql.user where host <> ' localhost ';

A record of "%" authorization (i.e. any address) is generally obtained:

No record does not meet the conditions, you need to modify the localhost to replace the 127.0.0.1

MySQL added skip-name-resolve can not link the problem, modified to restart MySQL on the

If there is a host name "DB1" "DB2", delete the Hostanme record in the authorization table and restart the mysqld.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.