I defined grants for the user John :
grant select on * to JOHN@localhost;
and upon running:
show grants for JOHN@localhost;
I get :
GRANT SELECT ON *.* TO `JOHN`@`localhost`
But when I try to remove the grant from a specific table, actor:
revoke select on sakila.actor from JOHN@localhost;
it says:
Error Code: 1147. There is no such grant defined for user 'JOHN' on host 'localhost' on table 'actor'
What could have gone wrong?
I tried to give select grants separately on sakila.*
but still it won't identify that John has grants over actor table.
Only when I explicitly grant select to JOHN for sakila.actor
, it identifies it.