已经解决,是我再配置方面没有做好。 附上解决方案,供同行参考: A: 192.168.1.1 Windows Server 2003 B: 192.168.1.2 Windows XP pro A机器安装PostgreSQL,默认端口5432 想实现B机器通过远程连接A机器的PostgreSQL服务。 如果A机器启动Windows防火墙,则在“例外”中“添加端口”加上5432端口。 在postgresql.conf中的修改 listen_addresses = '*' port = 5432 在pg_hba.conf中添加 host all all 192.168.1.2/32 trust(表示容许B连A) host all all 0.0.0.0/0 trust(容许所有客户端连接A) 在B机器上用pgAdminIII试试连接A机器192.168.1.1
附上解决方案,供同行参考:
A: 192.168.1.1 Windows Server 2003
B: 192.168.1.2 Windows XP pro
A机器安装PostgreSQL,默认端口5432
想实现B机器通过远程连接A机器的PostgreSQL服务。 如果A机器启动Windows防火墙,则在“例外”中“添加端口”加上5432端口。 在postgresql.conf中的修改
listen_addresses = '*'
port = 5432 在pg_hba.conf中添加
host all all 192.168.1.2/32 trust(表示容许B连A)
host all all 0.0.0.0/0 trust(容许所有客户端连接A)
在B机器上用pgAdminIII试试连接A机器192.168.1.1