设置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