Database module & multithreading

Jorge Godoy jgodoy at
Sat Mar 10 17:28:42 CET 2007

"jupiter" <anil.jupiter9 at> writes:

> conn = psycopg2.connect("dbname=test user=test")
> Traceback (most recent call last):
>   File "<pyshell#8>", line 1, in <module>
>     conn = psycopg2.connect("dbname=test user=test")
> OperationalError: could not connect to server: Connection refused
> (0x0000274D/10061)
> 	Is the server running on host "???" and accepting
> 	TCP/IP connections on port 5432?
> this is the error I am getting with psycopg2 I want to access a local
> file

PostgreSQL is a server, it access the files.  You talk to the RDBMS server.
Is it running?  Is it accepting connections from your host?

Jorge Godoy      <jgodoy at>

More information about the Python-list mailing list