局域网访问PostgreSQL链接不成功解决方法

    xiaoxiao2022-06-24  23

    1.找到PostgreSQL的安装目录下的data文件下的pg_hba.conf

    2.打开文件,找到

    # IPv4 local connections: host    all             all             127.0.0.1/32            md5

    然后在下面写上访问你数据库的电脑的ip

    例如192.168.30.14需要访问你的数据库

    host    all             all             192.168.30.14/32        md5

    然后保存文件,即可

    转载请注明原文地址: https://ju.6miu.com/read-1123771.html

    最新回复(0)