pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Tomaszewski <brianbanjo@gmail.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Guy Rouillier <guyr-ml1@burntmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC connection problem
Date: Tue, 5 Feb 2008 08:18:45 -0500
Message-ID: <4df751bf0802050518k1636c8f1ybe1cdac3153bb56@mail.gmail.com> (raw)
In-Reply-To: <DA45B3E4-A859-490B-B9A2-460A9E75AEC3@fastcrypt.com>
References: <4df751bf0802041918nafe3dc4na662592641a56a5b@mail.gmail.com>
	<47A7FCC0.1020201@burntmail.com>
	<DA45B3E4-A859-490B-B9A2-460A9E75AEC3@fastcrypt.com>

Dave,

Thanks for the tip. I just tried a test with a lowercase db and the
connection still didn't work.

Thanks again

BT

On Feb 5, 2008 6:29 AM, Dave Cramer <pg@fastcrypt.com> wrote:

> Brian,
>
> Try using lower case for the name of your database.
>
> Postgresql and upper case is an impedance mismatch.
>
> Dave
> On 5-Feb-08, at 1:05 AM, Guy Rouillier wrote:
>
> > Brian Tomaszewski wrote:
> >> I am having trouble connecting to a psql database running on
> >> Debian GNU/Linux system
> >> The version of psql I am using in the system is 8.2.6.
> >> No matter what I do, I continually am getting the error:
> >> /Backend start-up failed: FATAL:  database "RW_GEO" does not exist
> >> /when my JDBC component tries to connect using a URL like this:
> >> jdbc:postgresql://localhost:5432/RW_GEO
> >> from a tomcat app
> >> I have confirmed that the database RW_GEO does in fact exist as I
> >> can see/query tables from it from psql.
> >> Also, when I run my app on my development machine (windows), I can
> >> connect via tomcat with no problems to my local psql server.
> >
> > I'm trying to follow your runtime environment, but some pieces are
> > missing.  When you say you can query the database running on Debian
> > using psql, is that psql running on your Windows box or on the
> > Debian box?  I don't think this has anything to do with JDBC.  The
> > URL you show above has "localhost" as the server for the DB.  That's
> > probably not right, is it?  I wouldn't think you'd have Tomcat
> > running on your database server.
> >
> > So, run psql from whatever box is running Tomcat, and figure out how
> > to connect it to your DB server.  Once you've done that, you should
> > be able to just transfer the connection settings to JDBC.  I'm
> > anticipating once you attempt to do that, you'll encounter a
> > connection error.  That's because you need to update pg_hba.conf to
> > allow access to your database from remote hosts.
> >
> > --
> > Guy Rouillier
> >
> > ---------------------------(end of
> > broadcast)---------------------------
> > TIP 7: You can help support the PostgreSQL project by donating at
> >
> >               http://www.postgresql.org/about/donate
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

view thread (18+ messages)  latest in thread

Message-ID: <4df751bf0802050518k1636c8f1ybe1cdac3153bb56@mail.gmail.com>
Permalink:  ../4df751bf0802050518k1636c8f1ybe1cdac3153bb56@mail.gmail.com/
Also on:    postgresql.org/message-id/4df751bf0802050518k1636c8f1ybe1cdac3153bb56@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: brianbanjo@gmail.com, pg@fastcrypt.com, guyr-ml1@burntmail.com
  Subject: Re: JDBC connection problem
  In-Reply-To: <4df751bf0802050518k1636c8f1ybe1cdac3153bb56@mail.gmail.com>
  References: <4df751bf0802041918nafe3dc4na662592641a56a5b@mail.gmail.com> <47A7FCC0.1020201@burntmail.com> <DA45B3E4-A859-490B-B9A2-460A9E75AEC3@fastcrypt.com> <4df751bf0802050518k1636c8f1ybe1cdac3153bb56@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox