How to Allow Remote Access to PostgreSQL database

前端 未结 7 1325
鱼传尺愫
鱼传尺愫 2020-11-28 02:38

I have PostgreSQL 9.2 Installed in Windows 7 and I have windows XP installed in Virtual Machine, how do I connect these two databases and allow remote access to add/edit the

7条回答
  •  孤城傲影
    2020-11-28 03:39

    After set listen_addresses = '*' in postgresql.conf

    Edit the pg_hba.conf file and add the following entry at the very end of file:

    host    all             all              0.0.0.0/0                       md5
    host    all             all              ::/0                            md5
    

    For finding the config files this link might help you.

提交回复
热议问题