When mysql enables the skip-name-resolve mode, the following error occurs: _ MySQL
Source: Internet
Author: User
When mysql enables the skip-name-resolve mode, the method of Warning is bitsCN. com120726 11:57:22 [Warning] 'user' entry 'root @ localhost. localdomain 'ignored in -- skip-name-resolve mode. www.bitsCN.com
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.bitsCN.com
Let's just delete it.
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.
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