MySQL - Delete privileges of a user

Revision as of 17:14, 14 April 2020 by Ardaut (talk | changes) (Created page with "'''Delete (revoke) all privileges of a user:'''<br> REVOKE ALL PRIVILEGES ON mytable.* FROM 'myuser'@'localhost'; <br> '''Delete (revoke) a certain privilege of a user:'''<br>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Delete (revoke) all privileges of a user:
REVOKE ALL PRIVILEGES ON mytable.* FROM 'myuser'@'localhost';
Delete (revoke) a certain privilege of a user:
REVOKE DELETE ON mytable.* FROM 'myuser'@'localhost';
Delete (revoke) certain privilges of a user:
REVOKE DELETE, SELECT ON mytable.* FROM 'myuser'@'localhost';

More info:
https://dev.mysql.com/doc/refman/8.0/en/show-grants.html