In MySQL, I created a user and granted all privileges to the user. I even granted proxy to user.
CREATE USER IF NOT EXISTS 'testuser'@'localhost' IDENTIFIED BY 'testpass';
GRANT ALL PRIVILEGES ON *.* TO 'testuser'@'localhost' WITH GRANT OPTION;
GRANT PROXY ON ''@'' TO 'testuser'@'localhost' WITH GRANT OPTION;
Now if I drop the user, will the user's privileges and proxy be revoked? Or do I need to manually revoke the user's privileges and proxy before I drop the user?
DROP USER IF EXISTS 'testuser'@'localhost';
mysql.proxies_priv
table to see if the entry for the user is removed.SHOW GRANTS FOR 'testuser'@'localhost'
after dropping the user and there was no results, which means grants are automatically revoked.