MySQL Forums
Forum List  »  Security

Re: Restrict access to the database to allowed IPs only.
Posted by: Ryan Lowe
Date: August 06, 2007 08:13AM

That is implied in the GRANT statement:

GRANT SELECT ON databasename.* TO 'username'@'hostname' ... ;

(where hostname can be a literal FQDN or an IP address or something with a wildcard).

Be sure to remove any users from mysql.user where hostname is not specified (or is a %) if you wish to lock down the database.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Restrict access to the database to allowed IPs only.
28127
August 06, 2007 08:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.