The REVOKE Statement : REVOKE « User Permission « SQL / MySQL






The REVOKE Statement

   

REVOKE DELETE, INSERT, UPDATE ON world.* FROM 'jim'@'localhost';


REVOKE GRANT OPTION ON world.* FROM 'jill'@'localhost';

REVOKE FILE ON *.* FROM 'jen'@'myhost.example.com';

REVOKE SELECT ON mydb.* FROM 'jen'@'myhost.example.com';

REVOKE UPDATE ON test.mytable FROM 'jen'@'myhost.example.com';

SHOW GRANTS FOR 'jen'@'myhost.example.com';

USE mysql;

DELETE FROM user WHERE User = 'jen' AND Host = 'myhost.example.com';

FLUSH PRIVILEGES;

   
    
    
  








Related examples in the same category

1.REVOKE statement syntax
2.How the REVOKE statement works
3.Revoke ALL privileges from the user second, delete the user, and then verify the removal.
4.Revoke select privilege
5.Revoke references privilege
6.Revoke insert and select