In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "MySQL could not be resolved: the solution to Temporary failure in name resolution error reporting". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
In recent days, R & D has always complained that it is slow to connect to MySQL database and open data tables with Navicat. Log in to the database for analysis and check the error log:
Mysql > show variables like 'log_error'
+-- +
| | Variable_name | Value |
+-- +
| | log_error | / usr/local/mysql/data/idb3.err |
+-- +
1 row in set (0.00 sec)
View the error log:
[root@idb3 data] # cat / usr/local/mysql/data/idb3.err | grep failure | more
2016-05-24 16:06:44 11382 [Warning] IP address' 172.31.19.113' could not be resolved: Temporary failure in name resolution
2016-05-24 16:06:47 11382 [Warning] IP address' 172.31.19.113' could not be resolved: Temporary failure in name resolution
2016-05-24 16:09:00 11382 [Warning] IP address' 172.31.19.113' could not be resolved: Temporary failure in name resolution
2016-05-24 16:09:03 11382 [Warning] IP address' 172.31.19.113' could not be resolved: Temporary failure in name resolution
2016-05-24 16:09:14 11382 [Warning] IP address' 172.31.19.113' could not be resolved: Temporary failure in name resolution
.
Solution:
In the configuration file my.cnf of mysql
[mysqld]
Node add the following two lines
Skip-host-cache
Skip-name-resolve
The parameters are explained as follows:
Skip-host-cache: disable hostname caching
Skip-name-resolve: disable hostname resolution
Then restart the MySQL database to solve the problem:
# service mysqld restart
This is the end of the content of "MySQL could not be resolved: the solution to Temporary failure in name resolution error reporting". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.