September 2010
Intermediate to advanced
440 pages
9h 23m
English
To remove privileges that have been granted, one uses the REVOKE statement. One uses the same information to revoke privileges as to grant them:
As with dropping and creating a user, a pattern matching hostname of % does not include localhost. That host must be revoked explicitly.
The REVOKE command has the following basic syntax:
REVOKE <privileges> ON <database>.<table> FROM '<userid>'@'<hostname>';
So to revoke all access for user tempo to the City table of the world database when logged in locally, we would use the following statement:
REVOKE ALL PRIVILEGES ON world.City FROM 'tempo'@'localhost'; ...
Read now
Unlock full access