南大通用GBase 8a集群grant file、reload报错 gcluster dal error: Incorrect usage of DB GRANT and GLOBAL PRIVILEGES.

grant file, reload

GBase 8a数据库集群,在对数据库用户授权 grant file /reload 权限必须是*.* ,不支持指定库名和表名。

1、原因

file权限,只能是*.* 不支持库名.*这种

经确认, reload 权限也需要*.*

gbase> grant reload on testdb.* to test1;
ERROR 1758 (HY000): gcluster dal error: Incorrect usage of DB GRANT and GLOBAL PRIVILEGES.
gbase>
gbase> grant reload on *.* to test1;
Query OK, 0 rows affected (Elapsed: 00:00:00.00)

2、解决

grant file on *.* to myUser;

grant reload on *.* to myUser;

如果是V95版本,且没有开通VC,需要写成

grant file on *.*.* to myUser;

V95版本的grant file ,请参考

GBase 8a集群V95版本grant file报错 Incorrect usage of VC GRANT and GLOBAL PRIVILEGES.

南大通用GBase 8a集群grant file、reload报错 gcluster dal error: Incorrect usage of DB GRANT and GLOBAL PRIVILEGES.》有1条评论

评论已关闭。