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