To grant permission on a specific database and table to a specific username and IP is something like:
GRANT SELECT ON databasename.columnname TO 'username'@'1.2.3.4' IDENTIFIED BY 'password'
Make sure to read on the use of wildcards in the host part of the username.
Once you have REVOKEd permissions, the user's record can be deleted from the tables "user" and "db" in the "mysql" database. Tinker with these tables with extreme caution. Want the best answers? Ask the best questions:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.