GBase 8a
适配迁移
文章
GBase 8a集群grant file、reload报错 gcluster dal error: Incorrect usage of DB GRANT and GLOBAL PRIVILEGES.
GBase社区管理员发表于2020-07-28 15:51:5971次浏览0个评论
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.
评论已关闭
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25052
- 42023-09-25浏览数:18521
- 52020-05-11浏览数:17526