I was testing some stuff, and added a:
grant usage on statistics.* to cptnotsoawesome@localhost identified by 'password';
so now when I do
show grants for cptnotsoawesome@localhost;
I can see that one of them is:
Grants for cptnotsoawesome@localhost
----------------------------------
GRANT USAGE ON *.* TO 'cptnotsoawesome'@'localhost' IDENTIFIED BY PASSWORD 'somePEW-PEWstring'
Now I want to remove it as I think it's a security hazard, so i do the:
REVOKE USAGE ON *.* FROM 'cptnotsoawesome'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
But it still shows that USAGE grant in the grant list.
Grants for cptnotsoawesome@localhost
----------------------------------
GRANT USAGE ON *.* TO 'cptnotsoawesome'@'localhost' IDENTIFIED BY PASSWORD 'somePEW-PEWstring'
Any ideas why? What am I doing wrong?