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