新建的role如何从已有的roles数组中继承权限?
-
如果被继承的role不在当前DB中时,如何继承权限?
-
请参考文档:
本帖下載内容已隐藏,请登入以查看隐藏内容!method, specifying the privileges in theprivileges
array and the inherited roles in theroles
array.
-
抱歉我没看清楚问题。不在当前DB时是不能继承的:
Except for roles created in the
admin
database, a role can only include privileges that apply to its database and can only inherit from other roles in its database.