programming-examples/sql/UserManagement/9. How to revoke specific privilege from a user.sql

13 lines
318 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*9. How to revoke specific privilege from a user.
*/
/*Syntax :
revoke [<permission_1,permission_2,...permission_n>|<all privileges>]
on [database].[<table_name>|<all_tables(*)>]
from [user name]@[<localhost>|<IP address>|<any host('%')>];
*/
revoke select on posts.* from joy@'%';
flush privileges;