英文:
How can I check user privileges in Memgraph?
问题
I've checked the documentation for managing user privileges (https://memgraph.com/docs/memgraph/how-to-guides/manage-user-privileges) and I've created a new user:
创建用户 james@skyfalllodge.co.uk
,密码是 007
。
And I've added the privileges:
授予 james@skyfalllodge.co.uk
权限:MATCH、MERGE、CREATE、DELETE、REMOVE、SET。
How can I check if the privileges are assign? Do I need to try to run queries using MATCH, MERGE, CREATE, DELETE, REMOVE to test it out?
英文:
I've checked the documentation for managing user privileges (https://memgraph.com/docs/memgraph/how-to-guides/manage-user-privileges) and I've created a new user:
CREATE USER `james@skyfalllodge.co.uk` IDENTIFIED BY '007';
And I've added the privileges:
GRANT MATCH, MERGE, CREATE, DELETE, REMOVE, SET TO `james@skyfalllodge.co.uk`
How can I check if the privileges are assign? Do I need to try to run queries using MATCH, MERGE, CREATE, DELETE, REMOVE
to test it out?
答案1
得分: 2
以下是要翻译的内容:
您要查找的查询是
SHOW PRIVILEGES FOR james@skyfalllodge.co.uk
附言:您列出的查询(GRANT MATCH、MERGE、CREATE、DELETE、REMOVE SET TO james@skyfalllodge.co.uk
)中有一个拼写错误。在"remove"之后缺少逗号。请修复此错误。
英文:
The query that you are looking for is
SHOW PRIVILEGES FOR `james@skyfalllodge.co.uk`
P.S. The query that you have listed (GRANT MATCH, MERGE, CREATE, DELETE, REMOVE SET TO james@skyfalllodge.co.uk
) has a typo. You are missing a comma after remove. Please fix this.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论