Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [JDBC] JDBC connection problem

From: Brian Tomaszewski <brianbanjo(at)gmail.com>
Date: Tue Feb 05 2008 - 16:21:50 EST


All,

Thanks for the time and tips. Turned out to be a really stupid error - there was on old version of postres on the server that had taken port 5432, and my app was trying to connect to it (hence why the database wasn't being found), when it should have been connecting to the correct, newer instance of postres

I found this out by doing this command as Tom recommended:

$ psql -h localhost -l
psql: could not connect to server: Connection refused

        Is the server running on host "localhost" and accepting
        TCP/IP connections on port 5433?

And noticing the 5433...

A colleague of mine also noticed the multiple ports, and we now have things cleared up.

Thanks again everyone for the replies/comments

Brian

Do you need help?X

On Feb 5, 2008 12:27 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> "Brian Tomaszewski" <brianbanjo@gmail.com> writes:
> > Does "it" refer to the postgres server? if so, how do I check that it is
> > listening on a TCPIP port? (sorry if this sounds trivial, I am
> relatively
> > new to postgres on linux)
>
> try psql -h localhost -l
>
> regards, tom lane
>
Received on Tue Feb 5 16:23:34 2008

This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:43:37 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library