Connecting to PostgreSQL server

Поиск
Список
Период
Сортировка
От Daniel Weitzenfeld
Тема Connecting to PostgreSQL server
Дата
Msg-id BANLkTi=dgRnpzYPF9h1mPA1uKDns-Dmi2A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Connecting to PostgreSQL server  (John Meredith <meredijo@gmail.com>)
Re: Connecting to PostgreSQL server  (Michael Wood <esiotrot@gmail.com>)
Список pgsql-novice
Hi,
I have a remote server with PostgreSQL on it.
When I try to connect via python/pygresql, I get:

pg.InternalError: could not connect to server: Connection refused
    Is the server running on host "##.##.##.###" and accepting
    TCP/IP connections on port 5432?
 
Where I've blanked out my server's ip address for obvious reasons.

I ssh'd to my server and did this to iptables:

iptables -A INPUT -p tcp --dport 5432 -j ACCEPT

restarted iptables, but still no dice.

Any advice?

Thanks in advance!
-Daniel

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Jean-Yves F. Barbier"
Дата:
Сообщение: Re: Locking out a user after several failed login attempts
Следующее
От: John Meredith
Дата:
Сообщение: Re: Connecting to PostgreSQL server