Database module & multithreading
Jorge Godoy
jgodoy at gmail.com
Sat Mar 10 11:28:42 EST 2007
"jupiter" <anil.jupiter9 at gmail.com> 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 gmail.com>
More information about the Python-list
mailing list