Mysql:skip-name-reslove
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了 Mysql:skip-name-reslove,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1175字,纯文字阅读大概需要2分钟。
内容图文
![Mysql:skip-name-reslove](/upload/InfoBanner/zyjiaocheng/876/b2ee5728838f4b2392f41ee442480f4d.jpg)
-
Property Value Command-Line Format --skip-name-resolve[={OFF|ON}]
System Variable skip_name_resolve
Scope Global Dynamic No set_var Hint Applies No Type Boolean Default Value OFF
Whether to resolve host names when checking client connections. If this variable is
OFF
, mysqld resolves host names when checking client connections. If it isON
, mysqld uses only IP numbers; in this case, allHost
column values in the grant tables must be IP addresses. See section?8.12.4.2, “dns lookup optimization and the host cache”.Depending on the network configuration of your system and the
Host
values for your accounts, clients may need to connect using an explicit --host option, such as --host=127.0.0.1 or --host=::1.An attempt to connect to the host
127.0.0.1
normally resolves to thelocalhost
account. However, this fails if the server is run with skip_name_resolve enabled. If you plan to do that, make sure an account exists that can accept a connection. For example, to be able to connect asroot
using --host=127.0.0.1 or --host=::1, create these accounts:CREATE USER 'root'@'127.0.0.1' IDENTIFIED BY '
root-password
'; CREATE USER 'root'@'::1' IDENTIFIED BY 'root-password
';
内容总结
以上是互联网集市为您收集整理的 Mysql:skip-name-reslove全部内容,希望文章能够帮你解决 Mysql:skip-name-reslove所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。