How to revoke privileges

The syntax of the REVOKE statement for all privileges

      REVOKE ALL[ PRIVILEGES], GRANT OPTION FROM user [, user];
      

A statement that revokes all privileges from a user

      REVOKE ALL, GRANT OPTION FROM dba;
      

A statement that revokes all privileges from multiple users

      REVOKE ALL, GRANT OPTION FROM dba, joel@localhost;
      

The syntax of the REVOKE statement for specific privileges

      REVOKE privilegeList ON [dbName.]table FROM user [, user];
      

A statement that revokes specific privileges from a user

      REVOKE UPDATE, DELETE ON my_guitar_shop2.customers FROM joel@localhost;
      

Description

Back