我创建了一个用户,设置了以下参数:
GRANT USAGE ON inventario.* TO cursoDistribuida@locahost IDENTIFIED BY 'password';
我知道这不会让用户 cursoDistribuida 修改 inventario 数据库上的任何内容,但是,一旦我以 cursoDistribuida 身份登录到 MySQL,当我执行
SHOW DATABASES;
我在那里看不到 inventario
数据库,USAGE
不应该让我看到数据库内容吗?
最佳答案
来自source :-
The USAGE privilege specifier stands for "no privileges." It is used at the global level with GRANT to modify account attributes such as resource limits or SSL characteristics without affecting existing account privileges.
关于mysql - 在 MySQL 中为给定数据库创建用户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18420363/