Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0AFEC2E2E73 for ; Tue, 5 Feb 2008 07:29:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60246-05 for ; Tue, 5 Feb 2008 07:29:24 -0400 (AST) Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id 179312E3496 for ; Tue, 5 Feb 2008 07:29:24 -0400 (AST) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id BAD2D1580731; Tue, 5 Feb 2008 06:31:01 -0500 (EST) Cc: pgsql-jdbc@postgresql.org Message-Id: From: Dave Cramer To: Guy Rouillier In-Reply-To: <47A7FCC0.1020201@burntmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: JDBC connection problem Date: Tue, 5 Feb 2008 06:29:22 -0500 References: <4df751bf0802041918nafe3dc4na662592641a56a5b@mail.gmail.com> <47A7FCC0.1020201@burntmail.com> X-Mailer: Apple Mail (2.915) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/8 X-Sequence-Number: 18215 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