我正在测试一些东西,并添加了:
grant usage on statistics.* to cptnotsoawesome@localhost identified by 'password';
所以现在当我做
show grants for cptnotsoawesome@localhost;
我可以看到其中之一是:
Grants for cptnotsoawesome@localhost
----------------------------------
GRANT USAGE ON *.* TO 'cptnotsoawesome'@'localhost' IDENTIFIED BY PASSWORD 'somePEW-PEWstring'
现在,我想删除它,因为我认为这是安全隐患,因此我执行以下操作:
REVOKE USAGE ON *.* FROM 'cptnotsoawesome'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
但它仍显示USAGE授予在授予列表中。
Grants for cptnotsoawesome@localhost
----------------------------------
GRANT USAGE ON *.* TO 'cptnotsoawesome'@'localhost' IDENTIFIED BY PASSWORD 'somePEW-PEWstring'
有什么想法吗?我究竟做错了什么?