You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
318 B
SQL
13 lines
318 B
SQL
/*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;
|