Unable to connect PostgreSQL to remote database using pgAdmin

前端 未结 7 1134
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:22

    For redhat linux

    sudo vi /var/lib/pgsql9/data/postgresql.conf 
    

    pgsql9 is the folder for the postgres version installed, might be different for others

    changed listen_addresses = '*' from listen_addresses = ‘localhost’ and then

    sudo /etc/init.d/postgresql stop
    sudo /etc/init.d/postgresql start
    

提交回复
热议问题