X-Original-To: pgsql-interfaces@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 0BCCF92598C for ; Sat, 31 May 2003 16:03:13 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 28024-09 for ; Sat, 31 May 2003 16:03:02 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by developer.postgresql.org (Postfix) with SMTP id CA7A9925918 for ; Sat, 31 May 2003 16:03:01 -0400 (EDT) Received: (qmail 652 invoked by uid 0); 31 May 2003 20:03:01 -0000 Date: Sat, 31 May 2003 22:03:01 +0200 (MEST) From: Michael Vodep To: pgsql-interfaces@postgresql.org MIME-Version: 1.0 Subject: Win Client & PostgreSQL FreeBSD X-Priority: 3 (Normal) X-Authenticated-Sender: #0012539643@gmx.net X-Authenticated-IP: [80.121.1.43] Message-ID: <21212.1054411381@www59.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/93 X-Sequence-Number: 4211 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!