我在我的Window系统上有PGADMIN 3。我无法连接到Virtualbox-Centos机器下的Greenplum-Postgresql。在Virtualbox内部我能够使用psql创建b,但不能使用windows机器上的pgadmin。无法从windows上的pgadmin连接到greenplum postgresql
请建议我现在应该做什么。
我在我的Window系统上有PGADMIN 3。我无法连接到Virtualbox-Centos机器下的Greenplum-Postgresql。在Virtualbox内部我能够使用psql创建b,但不能使用windows机器上的pgadmin。无法从windows上的pgadmin连接到greenplum postgresql
请建议我现在应该做什么。
您可能没有gpadmin数据库无论是。开始与这个:
psql template1 -c "select * from pg_database where datname = 'gpadmin'"
如果数据库不存在,这样做:
psql template1 -c "create database gpadmin"
接下来,执行此,以允许与加密密码认证的外部连接:
echo "host all all 0.0.0.0/0 md5" >> $MASTER_DATA_DIRECTORY/pg_hba.conf
psql -c "alter user gpadmin password 'password'"
gpstop -u
返回pgAdmin,以用户gpadmin,密码“password”和端口5432连接到您的vm(使用ifconfig获取ip地址)。
GPDB/Postgresql在默认情况下拒绝远程访问。您需要将ACL添加到$ MASTER_DATA_DIRECTORY中的pg_hba.conf中,即/data/master/gpseg-1/pg_hba.conf。 指 https://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.html 或 http://gpdb.docs.pivotal.io/43100/admin_guide/client_auth.html 的细节
如果粘贴确切的错误这将是很好。
确保iptables
和ip6tables
没有运行。下面命令查看
service iptables status
service ip6tables status
谢谢。它现在正在工作。:) – Ronak