gerrit 管理员没有 "Access Database" 能力

gerrit admin does not have "Access Database" capability

我正在尝试使用以下命令访问我的 gerrit 服务器的数据库(我是 admin,我的用户名是 newbie)-

ssh -p 29418 localhost gerrit gsql

我收到以下错误:-

fatal: newbie does not have "Access Database" capability.

如何在 gerrit 中授予管理员数据库访问权限?

来自the gsql documentation

Caller must have been granted the Access Database global capability.

全局能力是configured in the project.config file,例如

[capability]
       accessDatabase = group Administrators