On 4/27/2011 12:31 PM, Joe Hesse wrote:
Quote:
Hi,
If I delete an MySQL database, it appears that users who have privileges
only for that database are still around. How can I remove them?
Thank you,
Joe |
No, deleting a database does not delete the users - although if this is
the only database they can access, there is nothing else they can do.
If you want to delete the users, you need to REVOKE privileges from the
associated users.
Although many DBADMINs don't bother because the rows don't take up much
space, and they may later want to GRANT privileges to the users to other
databases. However, if that isn't the case in your situation, just
REVOKE all privileges from the users.
You can DELETE them from the mysql.users table, but you must ensure they
have NO OTHER privileges first.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================