Thread: Failed Connection?

Failed Connection?

From
"Steven Smith"
Date:
I am trying to access a PostgreSQL 7.0 database through JDBC. I get an
'Error connecting to database' message everytime I try to connect. I have
setup the network and database to handle JDBC (atleast I think it is) but
still the problem persists. I have tried to run the same program from the
local machine postgres is running on, and still get the same error. I have
edited the pg_hba.conf file to ensure outside network connections can access
the database, I have looked at the postmaster.opts file (assuming this is
the options for postmaster) and it is using the -i option. I can use
pgaccess to view the database, so the database name, username and password
work. What else can it be???


RE: Failed Connection?

From
Joe Shevland
Date:
> the options for postmaster) and it is using the -i option. I can use
> pgaccess to view the database, so the database name, username and password
> work. What else can it be???

Gremlins? :)

Sounds generally OK, perhaps the JDBC URL you are using is invalid? Can you
attach the code you're using to connect?

Regards,
Joe

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://www.postgresql.org/search.mpl