【发布时间】:2012-07-29 09:18:39
【问题描述】:
我可以使用此代码轻松授予对一个 IP 的访问权限:
$ mysql -u root -p
Enter password:
mysql> use mysql
mysql> GRANT ALL ON *.* to root@'192.168.1.4' IDENTIFIED BY 'your-root-password';
mysql> FLUSH PRIVILEGES;
但我需要允许整个子网 192.168.1.* 远程访问数据库。
我该怎么做?
【问题讨论】: