mysql授权ip段访问mysql
1  | grant all privileges on *.* to 'yang'@'192.168.1.%' identified by '123456';  | 
linux iptables开启3306端口 访问
1  | iptables -I INPUT -p tcp -s 192.168.1.0/24 --dport 3306 -j ACCEPT  | 
mysql授权ip段访问mysql
1  | grant all privileges on *.* to 'yang'@'192.168.1.%' identified by '123456';  | 
linux iptables开启3306端口 访问
1  | iptables -I INPUT -p tcp -s 192.168.1.0/24 --dport 3306 -j ACCEPT  |