帮助中心 >  技术知识库 >  云服务器 >  服务器教程 >  MySQL反解析出现could not be resolved: Name or service not known解决办法

MySQL反解析出现could not be resolved: Name or service not known解决办法

2018-08-13 14:14:35 10976

错误日志有类似警告:

120119 16:26:04 [Warning] IP address '192.168.1.10' could not be resolved: Name or service not known
120119 16:26:04 [Warning] IP address '192.168.1.14' could not be resolved: Name or service not known
120119 16:26:04 [Warning] IP address '192.168.1.17' could not be resolved: Name or service not known

通过show processlist发现大量类似如下的连接:

|592|unauthenticated user|192.168.1.10:35320|NULL|Connect| |login|NULL|
|593|unauthenticated user|192.168.1.14:35321|NULL|Connect| |login|NULL|
|594|unauthenticated user|192.168.1.17:35322|NULL|Connect| |login|NULL|

修改配置文件添加并需要重启:

[mysqld] 
skip-name-resolve

skip-name-resolve 参数的作用:不再进行反解析(ip不反解成域名),这样可以加快数据库的反应时间。


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: