
February 4th, 2012, 06:29 PM
|
 |
manwich
|
|
Join Date: Oct 2003
Location: Canadanistan
|
|
1. If you want 5 different IPs you'll need 5 different user entries. Since % is a wildcard you can also use 'user'@'%' to allow connections from anywhere, but this is super insecure if you're not using a firewall in front of your mySQL box.
2. 192.168.1.% is essentially equivalent to a /24. According to the mySQL docs you can also specify IPs with the full netmask such as 192.168.1.0/255.255.255.0 if you need something other than a /8, /16, or /24.
3. See 1 and 2. If you have a local domain you can specify the host part as something like '%.mydomain.local'.
|