首页 > 数据库技术 > 详细

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

时间:2020-07-04 10:51:34      阅读:452      评论:0      收藏:0      [点我收藏+]

解决办法:
修改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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!