I’m still looking for new entries. I get quite a few suggestions, but not all of them make it into quiz questions. Do send in your suggestions!
As the MySQL root user user, I grant access to a new employee in the organization:
GRANT SELECT ON abc.* TO "user_a"@"192.168.1.%";
Some time later, the new colleague becomes a former colleague, and being not only lazy but also unsure exactly what privileges user_a has been granted over time, I do
REVOKE ALL PRIVILEGES ON *.* FROM "user_a"@"192.168.1.%";
in order to remove all of user_a’s access to the database system.
Questions:
- Has the original SELECT privilege granted in the GRANT statement been revoked for user_a by the REVOKE statement?
- Suppose all privileges on all databases and tables have been revoked for user_a. Will user_a be able to log on to the MySQL server?