Revoking privileges : REVOKE « Privilege « MySQL Tutorial






Revoking privileges is almost identical to granting them as you simply substitute RE VOKE.... FROM for GRANT....TO and omit any passwords or other options.

For example to REVOKE the privileges assigned to a user called 'bad':

mysql> REVOKE ALL PRIVILEGES
    -> ON myDatabase.*
    -> FROM bad@localhost;








27.6.REVOKE
27.6.1.Revoking privileges
27.6.2.To remove UPDATE, INSERT and DELETE privileges
27.6.3.Removing Permissions from a Database
27.6.4.No other database can allow any user to connect from any host.
27.6.5.Removing Permissions from a User