如何在Memgraph中检查用户权限?

huangapple go评论61阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月24日 19:53:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76323229.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定