前言:Windows下对postgre开启远程连接权限,下面是实际操作过程中的手顺
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 md5
- host all all xxx.xxx.xxx.xxx/32 md5
xxx.xxx.xxx.xxx即为需要登录的IP地址
4.在Windows的服务中重新启动postgre服务
再次尝试重新连接就OK了
本文介绍如何在Windows环境下配置PostgreSQL以允许远程连接。包括修改postgresql.conf和pg_hba.conf文件的具体步骤,以及重启服务的方法。

2089

被折叠的 条评论
为什么被折叠?



