Q:

How to revoke all privileges from a user

0

How to revoke all privileges from a user.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Syntax :

revoke [<permission_1,permission_2,...permission_n>|<all privileges>] 
on [database].[<table_name>|<all_tables(*)>] 
from [user name]@[<localhost>|<IP address>|<any host('%')>];

Example :

revoke all privileges on posts.* from joy@'%';
flush privileges;

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now