IP address could not be resolved: Temporary failure in name resolution
2017-09-15 17:49
1516 查看
在自己的mysql日志中发现了如下的错误信息 2017-09-15T01:07:10.373535Z 5 [Warning] IP address '192.168.33.1' could not be resolved: Temporary failure in name resolution 2017-09-15T01:07:28.445920Z 6 [Warning] IP address '192.168.33.1' could not be resolved: Temporary failure in name resolution 2017-09-15T01:07:49.944375Z 7 [Warning] IP address '192.168.33.10' could not be resolved: Temporary failure in name resolution
问题产生的原因:
出现错误的原因是MYSQL Server在本地内存中维护了一个非本地的Client TCP cache。这个cache中包括了远程Client的登录信息,比方IP地址。hostname等信息。
假设Client连接到server后,Mysql首先会在本地TCP池中依据IP地址解析client的hostname或者反解析,假设解析不到。就会去DNS中进行解析,假设还是解析失败
就是在error log中写入这种警告信息。
解决的办法:
1.能够通过两个參数来disable这个功能,在MYSQL的配置文件里(亲测)[mysqld]中增加以下的參数:
[mysqld] skip-host-cache skip-name-resolve
然后重启数据库
service mysqld restart
2.加入授权。
将全部訪问数据库server的授权方式都改成IP形式。
不同的用户用不同的username和password。
grant all on *.* to ‘user_68’@’172.16.12.68’identified by ‘pwd_68’;
然后去 mysql数据库以下的 user表 和db表 以下删除掉那些含有含有主机名字的权限记录。
相关文章推荐
- IP address could not be resolved: Temporary failure in name resolution
- IP address could not be resolved: Temporary failure in name resolution
- IP address '172.172.200.88' could not be resolved: Temporary failure in name resolution
- [MySQL]IP address '192.168.31.110' could not be resolved: Temporary failure in name resolution
- IP address could not be resolved: Temporary failure in name resolution
- [Warning] IP address'10.0.9.121' could not be resolved: Temporary failure in name resolution
- 启动hadoop时候报错:localhost: ssh: Could not resolve hostname localhost: Temporary failure in name resolution”
- ssh: Could not resolve hostname you: Temporary failure in name resolution
- install LuaForWindow 提示The server name or address could not be resolved. 错误
- 发邮件遇到 Failure sending mail.The remote name could not be resolved: 'www.youdomain.com' 问题的解决方法
- mysql错误日志报IP address '' could not be resolved: Nam
- yum安装软件报错:curl#6 - "Could not resolve host: mirrorlist.centos.org; Temporary failure in name resolut
- yum安装软件报错:curl#6 - "Could not resolve host: mirrorlist.centos.org; Temporary failure in name resolut
- yum安装软件报错:curl#6 - "Could not resolve host: mirrorlist.centos.org; Temporary failure in name resolut
- Oracle 安装报错 [INS-06101] IP address of localhost could not be determined 解决方法
- WebService problem:The remote name could not be resolved
- Temporary failure in name resolution
- Yum 出现 Temporary failure in name resolution 解决方案
- Oracle 安装报错 [INS-06101] IP address of localhost could not be determined 解决方法
- (98)Address already in use: make_sock: could not bind to address 80 [resolved]