pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Vodep <mvodep@gmx.net>
To: pgsql-interfaces@postgresql.org
Subject: Win Client & PostgreSQL FreeBSD
Date: Sat, 31 May 2003 22:03:01 +0200 (MEST)
Message-ID: <21212.1054411381@www59.gmx.net> (raw)

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!




view thread (2+ messages)  latest in thread

Message-ID: <21212.1054411381@www59.gmx.net>
Permalink:  ../21212.1054411381@www59.gmx.net/
Also on:    postgresql.org/message-id/21212.1054411381@www59.gmx.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: mvodep@gmx.net
  Subject: Re: Win Client & PostgreSQL FreeBSD
  In-Reply-To: <21212.1054411381@www59.gmx.net>

* 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