Home >Database >Mysql Tutorial >MySQL连接无法解析HOST主机名_MySQL

MySQL连接无法解析HOST主机名_MySQL

WBOY
WBOYOriginal
2016-06-01 13:26:091138browse

bitsCN.com

MySQL连接无法解析HOST主机名的解决方法。

错误提示:
#1042 - Can't get hostname for your address

使用IP链接或域名链接都可能遇到这个问题

解决办法:
my.ini 或 my.cnf 末尾添加 skip-name-resolve 并重启MySQL服务器 ok!

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn