localhost - connection problem
- From: Pawel <goghi@xxxxxxxxx>
- Date: Fri, 20 May 2005 15:22:23 +0200
Hi,
I have a problem with java and PostgreSQL. When I type:
connection = DriverManager.getConnection("jdbc:postgresql://"+host+":"+postgresPort+"/thesis", user, password);
as long as the host equals "localhost" everything is ok. But when I type: "laptop" which is the real name of my machine (where in fact PostgreSQL is installed) it throws an SQLException.
I have a line: listen_addresses = '*' in my postgresql.conf file.
If someone could explain me that problem I would be grateful.
Thanks for any help Pawel .
- Follow-Ups:
- Re: localhost - connection problem
- From: Thomas Kellerer
- Re: localhost - connection problem
- Prev by Date: hsqldb 1.8.0 RC 10 Released
- Next by Date: Re: localhost - connection problem
- Previous by thread: hsqldb 1.8.0 RC 10 Released
- Next by thread: Re: localhost - connection problem
- Index(es):
Relevant Pages
|