连接授权问题吧,把你的pgsql的data目录下的pg_hba.conf最后几行改成这样看看:
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
local all all trust
# IPv4-style local connections:
host all all 127.0.0.1 0.0.0.0 trust
# IPv6-style local connections:
host all all 0.0.0.0 0.0.0.0 md5另外启动数据库时加 -i 参数启动TCP连接服务
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
local all all trust
# IPv4-style local connections:
host all all 127.0.0.1 0.0.0.0 trust
# IPv6-style local connections:
host all all 0.0.0.0 0.0.0.0 md5另外启动数据库时加 -i 参数启动TCP连接服务
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货