当前位置: 代码迷 >> 综合 >> Windows下开启postgre远程连接权限
  详细解决方案

Windows下开启postgre远程连接权限

热度:51   发布时间:2024-01-25 03:15:34.0
1.找到postgresql.conf文件,注意安装路径
D:\Program Files (x86)\PostgreSQL\9.3\data
2.打开该文件,注意以下内容,确认为下面内容后,进行下一步
listen_addresses = '*'
3.打开pg_hba.conf文件,注意以下内容# IPv4 local connections:host    all             all             127.0.0.1/32            md5host    all             all             xxx.xxx.xxx.xxx/32            md5xxx.xxx.xxx.xxx即为需要登录的IP地址
4.在Windows的服务中重新启动postgre服务再次尝试重新连接就OK了

 

  相关解决方案