解决postgresql数据库localhost可以连接,ip连接不了的问题 解决:windows环境下,postgresql数据库,localhost可以连接,ip地址连接不了。 解决办法: 1、打开postgresql安装目录下的配置文件 pg_hba.conf 2、在pg_hba.conf 中,添加本地ip配置 3、重新连接即可