Cannot connect to postgres from remote host

前端 未结 6 1284
刺人心
刺人心 2020-12-13 12:50

I have a database server (192.168.1.50) running postgres. I have created a database named \"testdb\" and a user \"testuser\" with password \"testuserpw\".
Locally, I can

6条回答
  •  鱼传尺愫
    2020-12-13 13:45

    Connection refused (0x0000274D/10061) i fixed here with:

    Open the terminal and type:

    VIM /var/lib/pgsql/data/postgresql.conf
    

    Edit the "listen_adresses", it should be set to '*'

    After this, rest it on terminal:

    /scripts/restartsrv_postgres
    

提交回复
热议问题