Complete the code to revoke SELECT privilege from user 'alice' on database 'shop'.
REVOKE [1] ON shop.* FROM 'alice'@'localhost';
The REVOKE statement removes privileges. Here, we remove the SELECT privilege from user 'alice' on all tables in the 'shop' database.
Complete the code to revoke ALL privileges from user 'bob' on the database 'inventory'.
REVOKE [1] ON inventory.* FROM 'bob'@'%';
Using ALL PRIVILEGES revokes every privilege the user has on the specified database.
Fix the error in the code to revoke INSERT privilege from user 'carol' on all databases.
REVOKE [1] ON *.* FROM 'carol'@'localhost';
The correct privilege name is INSERT. Misspelled privilege names cause syntax errors.
Fill both blanks to revoke UPDATE privilege from user 'dave' on the 'sales' database.
REVOKE [1] ON [2] FROM 'dave'@'192.168.1.10';
The UPDATE privilege is revoked on all tables in the sales database, which is specified as sales.*.
Fill all three blanks to revoke DELETE privilege from user 'eve' on the 'marketing' database.
REVOKE [1] ON [2] FROM '[3]'@'localhost';
This revokes the DELETE privilege on all tables in the marketing database from user eve at localhost.