pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedWin Client & PostgreSQL FreeBSD
2+ messages / 2 participants
[nested] [flat]
* Win Client & PostgreSQL FreeBSD
@ 2003-05-31 20:03 Michael Vodep <mvodep@gmx.net>
2003-06-01 15:19 ` Re: Win Client & PostgreSQL FreeBSD Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Michael Vodep @ 2003-05-31 20:03 UTC (permalink / raw)
To: pgsql-interfaces
Hoi!
With following Source i try to connect a PostgreSQL Database running on
FreeBSD:
=========================
PGconn *conn;
conn = PQsetdbLogin("192.168.1.34", "5432", NULL, NULL,
"mainhm","mike","****");
CString err;
if (PQstatus(conn) == CONNECTION_BAD) {
err.Format("Es ist ein Fehler aufgetretenn%s", PQerrorMessage(conn));
AfxMessageBox(err, MB_ICONSTOP | MB_OK);
TRACE("%s", err);
PQfinish(conn);
}
=========================
Following error is displayed in the Debug Window:
connectDBStart() -- connect() failed Is the postmaster running (with -i) at
'192.168.1.34' and accepting connections on TCP/IP port 5432?
=========================
PGconn *conn;
conn = PQconnectdb("hostaddr='192.168.1.34' port='5432'");
=========================
Followings errors are displayed:
Postmaster: Unexpected EOF of client connection
Client: fe_sendauth: authentication type 5 not supported
Postmaster is running with -i option and i can connect with the pgadmin II
without any problems :/
I have Visual C++ SP 5 and Win2000 SP2
What have i done wrong?
thx & cya mike
Sorry for my bad English :)
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Win Client & PostgreSQL FreeBSD
2003-05-31 20:03 Win Client & PostgreSQL FreeBSD Michael Vodep <mvodep@gmx.net>
@ 2003-06-01 15:19 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2003-06-01 15:19 UTC (permalink / raw)
To: Michael Vodep <mvodep@gmx.net>; +Cc: pgsql-interfaces
Michael Vodep <mvodep@gmx.net> writes:
> Client: fe_sendauth: authentication type 5 not supported
Looks like you need a newer copy of libpq. I think type 5 is MD5,
which was only added in the last release or two.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-06-01 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-31 20:03 Win Client & PostgreSQL FreeBSD Michael Vodep <mvodep@gmx.net>
2003-06-01 15:19 ` Tom Lane <tgl@sss.pgh.pa.us>
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