pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedjdbc connectint ot db
3+ messages / 3 participants
[nested] [flat]
* jdbc connectint ot db
@ 2000-12-18 13:41 Katsuyuki Tanaka <katsut@cse.unsw.EDU.AU>
2000-12-18 14:54 ` Re: jdbc connectint ot db Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Katsuyuki Tanaka @ 2000-12-18 13:41 UTC (permalink / raw)
To: pgsql-interfaces
I'm having trouble with connecting to db. I created user and password by
creatuser and pg_passwd, and have line in my pg_hba.conf
#####
local all password passwd
host all 127.0.0.1 255.255.255.255 password passwd
#####
passwd is file create to have password.
now when i try to connect to db by
#####
DriverManager.getConnection("jdbc:postgresql:test",user,pass);
#####
I get the following error messg,
#####
The backend has broken the connection. Possibly the action you have
attempted has caused it to close.
#####
i don't know what is causing to get this error anyone have any idea?
katsu
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: jdbc connectint ot db
2000-12-18 13:41 jdbc connectint ot db Katsuyuki Tanaka <katsut@cse.unsw.EDU.AU>
@ 2000-12-18 14:54 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2000-12-18 14:54 UTC (permalink / raw)
To: Katsuyuki Tanaka <katsut@cse.unsw.EDU.AU>; +Cc: pgsql-interfaces
Katsuyuki Tanaka <katsut@cse.unsw.EDU.AU> writes:
> I get the following error messg,
> #####
> The backend has broken the connection. Possibly the action you have
> attempted has caused it to close.
> #####
That's a pretty content-free message, isn't it :-(
There might be more information in the postmaster log. Make sure
you are saving a postmaster log (postmaster should be started without
-S switch, and with stdout and stderr routed to some logfile), and
then see what gets appended to the log when you try to connect.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* RE: jdbc connectint ot db
@ 2000-12-18 13:46 Peter Mount <petermount@maidstone.gov.uk>
0 siblings, 0 replies; 3+ messages in thread
From: Peter Mount @ 2000-12-18 13:46 UTC (permalink / raw)
To: 'Katsuyuki Tanaka' <katsut@cse.unsw.EDU.AU>; pgsql-interfaces
What version of the backend/driver are you using?
--
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount@maidstone.gov.uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council
> -----Original Message-----
> From: Katsuyuki Tanaka [mailto:katsut@cse.unsw.EDU.AU]
> Sent: Monday, December 18, 2000 1:42 PM
> To: pgsql-interfaces@postgresql.org
> Subject: [INTERFACES] jdbc connectint ot db
>
>
>
>
> I'm having trouble with connecting to db. I created user and
> password by
> creatuser and pg_passwd, and have line in my pg_hba.conf
>
> #####
> local all
> password passwd
> host all 127.0.0.1 255.255.255.255
> password passwd
> #####
>
> passwd is file create to have password.
> now when i try to connect to db by
>
> #####
> DriverManager.getConnection("jdbc:postgresql:test",user,pass);
> #####
>
> I get the following error messg,
>
> #####
> The backend has broken the connection. Possibly the action you have
> attempted has caused it to close.
> #####
>
> i don't know what is causing to get this error anyone have any idea?
>
> katsu
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2000-12-18 14:54 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-12-18 13:41 jdbc connectint ot db Katsuyuki Tanaka <katsut@cse.unsw.EDU.AU>
2000-12-18 14:54 ` Tom Lane <tgl@sss.pgh.pa.us>
2000-12-18 13:46 RE: jdbc connectint ot db Peter Mount <petermount@maidstone.gov.uk>
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