pgAdmin3 connection problems

前端 未结 8 1145
野趣味
野趣味 2021-02-04 05:30

I\'m recently setting up and running a Windows 2008 r2 server with VMware Workstation 8.

I\'m running a Centos 6.2 virtual linux box with Postgresql 9.1. Everything seem

相关标签:
8条回答
  • 2021-02-04 05:37

    Is the server running on host "192.168.1.26" and accepting TCP/IP connections on port 5432?

    Check that the server has that IP address. Check that there are postgres processes running. Use netstat to confirm that the server is listening on port 5432.

    0 讨论(0)
  • 2021-02-04 05:38

    i have the same problem. I disabled all my third party antiviruses and firewalls and reinstall PostgreSQL again and its now working fine... :)

    0 讨论(0)
  • 2021-02-04 05:40

    Make sure PostgreSQL Server is allowed through the firewall:

    On the server machine, go to

    Control Panel > System and Security > Windows Firewall > Allow an app through Windows Firewall

    Scroll through Allowed apps and features, make sure 'PostgreSQL Server' is checked.

    0 讨论(0)
  • 2021-02-04 05:41

    Adding to the great answers above, after implementing all the firewall rules and the configuration file changes, it still wasn't connecting to my host's IP address. Then I realized I had installed pgadmin locally on the host that my postgres db was installed on. I didn't need to use the external IP address for the host, I simply needed to connect to "localhost" in the pgadmin connection process. Extremely frustrating but made sense. So, if you

    • host pgadmin from the same server as your postgres database
    • have ruled out that the firewall is not in your way
    • have ruled out that any security groups are not blocking you
    • have fiddled enough with your configuration files pg_hba.conf and postgresql.conf

    then maybe... just maybe, try connecting to "localhost" or "127.0.0.1".

    it's worth a shot right!

    0 讨论(0)
  • 2021-02-04 05:42

    You should also allow port 5432 on the firewall.

    example on centos 8:

    sudo firewall-cmd --zone = public --add-port = 5432 / tcp --permanent
    
    0 讨论(0)
  • 2021-02-04 05:50

    Probably a firewall issue, check it by

    systemctl status firewalld.service
    

    you could simply disable it by:

    systemctl stop firewalld.service
    systemctl disable firewalld.service
    
    0 讨论(0)
提交回复
热议问题