xmanman

导航

 

设置greenplum用户和密码访问:
1、创建gp用户
create user tableau with nosuperuser nocreatedb password 'tableau' ;

修改密码命令:alter user gpadmin with password 'gpadmin';


2、赋表的读的权限
create table test(
id integer
)
GRANT select on table test to tableau;


3、设置配置文件:
vim /extsdd1/gpadmin/data/master/gpseg-1/pg_hba.conf

增加最上面增加三行:

host all gpadmin 127.0.0.1/28 trust
host all gpadmin 0.0.0.0/1 md5
host all tableau 0.0.0.0/0 md5

posted on 2019-08-26 16:07  xmanman  阅读(3440)  评论(0)    收藏  举报