Unable to connect PostgreSQL to remote database using pgAdmin

前端 未结 7 1135
Happy的楠姐
Happy的楠姐 2020-11-29 18:58

I installed PostgreSQL on my local server (Ubuntu) with IP 192.168.1.10. Now, I\'m trying to access the database from my client machine (Ubuntu) with IP 192.168.1.11 with p

7条回答
  •  暖寄归人
    2020-11-29 19:18

    If you're using PostgreSQL 8 or above, you may need to modify the listen_addresses setting in /etc/postgresql/8.4/main/postgresql.conf.

    Try adding the line:

    listen_addresses = *
    

    which will tell PostgreSQL to listen for connections on all network interfaces.

    If not explicitly set, this setting defaults to localhost which means it will only accept connections from the same machine.

提交回复
热议问题