连接greenplum(postgresql)数据库报错:no pg_hba.conf entry for host,以及重启 greenplum

解决办法:
修改pg_hba.conf,在第一行添加一行:
host all all 0.0.0.0/0 md5
表示允许任何用户连接到任何数据库,用一个加密的密码

完全信任:  host all all 0.0.0.0/0 trust

  对应 greenplum,搜索 pg_hba.conf 文件

   添加完后,重启 greenplum.

  首先执行 greenplum_path.sh 脚本

  然后:export MASTER_DATA_DIRECTORY=/data/gpmaster/gpseg-1

  停止指令:gpstop

  启动指令:gpstart

原文地址:https://www.cnblogs.com/xy-ouyang/p/13234061.html