Skip site navigation (1) Skip section navigation (2)

Win Client & PostgreSQL FreeBSD

From: Michael Vodep <mvodep(at)gmx(dot)net>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Win Client & PostgreSQL FreeBSD
Date: 2003-05-31 20:03:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
With following Source i try to connect a PostgreSQL Database running on
PGconn *conn;
conn = PQsetdbLogin("", "5432", NULL, NULL,
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);
Following error is displayed in the Debug Window:
connectDBStart() -- connect() failed Is the postmaster running (with -i) at
'' and accepting connections on TCP/IP port 5432?

PGconn *conn;
conn = PQconnectdb("hostaddr='' 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 +++
Bitte l├Ącheln! Fotogalerie online mit GMX ohne eigene Homepage!


pgsql-interfaces by date

Next:From: Manfred SpraulDate: 2003-06-01 09:10:46
Subject: Re: ECPG thread-safety
Previous:From: Michael VodepDate: 2003-05-31 08:15:45
Subject: Got Problems with libpg.dll

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group