How to handle the issue of Warning when mysql enables the skip-name-resolve Mode

Source: Internet
Author: User

120726 11:57:22 [Warning] 'user' entry 'root @ localhost. localdomain 'ignored in -- skip-name-resolve mode. www.2cto.com

120726 11:57:22 [Warning] 'user' entry '@ localhost. localdomain 'ignored in -- skip-name-resolve mode.

Skip-name-resolve is to disable dns resolution to avoid network DNS resolution errors that may cause access to MYSQL. It should generally be enabled.

After it is enabled, the host name cannot be used in the mysql authorization table, and only IP addresses are allowed. This warning is displayed because the mysql table already has localhost. localdomain account information. Www.2cto.com

Let's just delete it.Copy codeThe Code is as follows: mysql> use mysql;
Mysql> delete from user where HOST = 'localhost. localdomain ';
Query OK, 2 rows affected (0.00 sec)

Restart MYSQL and the warning is no longer displayed.

Author: Naola2001

Related Article

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.