MySQL enable Skip-name-resolve mode some issues summary

Source: Internet
Author: User

MySQL enabled Skip-name-resolve mode when the warning approach, currently if your authorization is for all hosts you will not encounter the problem

When optimizing MySQL configuration, join skip-name-resolve, check boot log when restarting MySQL, and find warning message.
121126 11:57:22 [Warning] ' user ' entry ' root@localhost.localdomain ' ignored in--skip-name-resolve mode.
121126 11:57:22 [Warning] ' user ' entry ' @localhost. Localdomain ' ignored in--skip-name-resolve mode.

Skip-name-resolve is to disable DNS resolution to prevent network DNS resolution services from raising errors that access MySQL, which should generally be enabled. When enabled, in the MySQL authorization table can not use the host name, can only use IP, this is the warning because the MySQL table already has Localhost.localdomain account information. Let's just delete it, or authorize a new IP address. The deletion method is as follows:

The code is as follows Copy Code

Mysql>use MySQL;
mysql> Delete from user where host= ' localhost.localdomain ';
Query OK, 2 rows Affected (0.00 sec)


Restart MySQL, found that the warning has not been, then some friends will ask since this is a problem that enable skip-name-resolve what to do, this estimate you will know later OH.

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.