mysql 指定域_MySQL允许从特定域访问?(MySQL allow access from specific domain?)

MySQL允许从特定域访问?(MySQL allow access from specific domain?)

我试图允许访问我在本地服务器上运行的MySQL实例。 我知道我可以在my.cnf文件中绑定对某些IP和某些IP范围的远程访问。 我很好奇是否可以允许从整个域访问,而不必列出可能连接的所有可能的IP。

我知道您可以通过GRANT命令授予对整个域的访问权限,但我想我的断开连接是my.cnf文件如何使用它。

例如,如果我

GRANT ALL PRIVILEGES ON mydatabase.* to jsmith@'somedomain' IDENTIFIED BY 'jimspassword';

但是,在my.cnf文件中没有任何IP限制它仍然可以工作吗?

谢谢你的帮助

I'm trying to allow access to the MySQL instance I have running on a local server here. I know I can bind remote access to certain IP's and certain IP ranges in the my.cnf file. I was curious if it was possible to allow access from entire domains rather than having to list out all the possible IP's that might be connecting.

I know you can grant access to entire domains via the GRANT command but i guess my disconnect is how the my.cnf file works with this.

Exampl

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值