revoking mysql table level privileges
-
02-11-2019 - |
Question
I have a mysql user account who has following Global privileges
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, PROCESS, REFERENCES, INDEX, ALTER,
SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW,
CREATE ROUTINE, ALTER ROUTINE, EVENT,
TRIGGER ON *.* TO 'maintenance'@'host' IDENTIFIED BY PASSWORD 'password';
I need to revoke insert, delete or update privileges on the certain tables for this user. So, I tried this:
mysql> REVOKE INSERT, DELETE, UPDATE ON Hotels.AllHotels FROM 'user'@'host';
An I am seeing the following error
ERROR 1147 (42000): There is no such grant defined for user 'user' on host 'host' on table 'AllHotels'
I am performing the above actions as the mysql root user.
Could someone help please?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange