PostgreSQL的远端配置
发布时间:2020-12-13 16:44:56 所属栏目:百科 来源:网络整理
导读:实验 想自己搭个PostgreSQL做实验。 下载的win版数据库(postgresql-9.4.15-1-windows-x64.exe) + navicat120_pgsql_en_x64.exe。 安装完postgresql, 在本地,用自带的pgAdminIII 是可以查询数据库的,但是用wireshake抓不到包,估计没走socket,而是直接走
实验想自己搭个PostgreSQL做实验。 # TYPE DATABASE USER ADDRESS METHOD # IPv4 local connections:
host all all 127.0.0.1/32 md5
# @note this is the db ip from remote connect!
host all all 192.168.66.66/24 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost,by a user with the
# replication privilege.
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5
这时,远端的navicat120_pgsql再连接192.168.66.66的端口5432,就可以访问postgresql数据库了。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |