pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Got Problems with libpg.dll
2+ messages / 2 participants
[nested] [flat]

* Got Problems with libpg.dll
@ 2003-05-31 08:15  Michael Vodep <mvodep@gmx.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Michael Vodep @ 2003-05-31 08:15 UTC (permalink / raw)
  To: pgsql-interfaces@postgresql.org.

Hi!
I tryed to connect my PostgreSQL Database - running on FreeBSD - with an
Windows Client for many
times.
-------------------------------------------------------------------------------------------------
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);
}
-------------------------------------------------------------------------------------------------

My second
attempt:
-------------------------------------------------------------------------------------------------
PGconn *conn;
conn = PQconnectdb("hostaddr='192.168.1.34'
port='5432'");
-------------------------------------------------------------------------------------------------
I get errors , durring i try to connect with PQsetdbLogin:
"connectDBStart() -- connect() failed Is the postmaster running (with -i) at
'192.168.1.34' and accepting connections on TCP/IP port 5432?"

If i try to connect with PQconnectdb, the postmaster says: "Unexpected EOF
of client connection"
The Client says: "fe_sendauth: authentication type 5 not supported"

What have I done wrong??
thx Michael
I use M$ VC++ 6 SP 5 on Win2000 SP3



-- 
+++ 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: Got Problems with libpg.dll
@ 2003-06-01 21:55  Jan Emonson & Rick Gregory <jr@gbgsoft.com>
  parent: Michael Vodep <mvodep@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Jan Emonson & Rick Gregory @ 2003-06-01 21:55 UTC (permalink / raw)
  To: pgsql-interfaces

This does not sound like a problem with your useage of libpq.dll, but more 
that the backend is not accepting IP based connections. Can you connect with 
pgAdmin II or orther ODBC vehicles? 

If not, then look at pg_hba.conf to see which connections configuration 
options are active..

On May 31, 2003 04:15 am, Michael Vodep wrote:
> Hi!
> I tryed to connect my PostgreSQL Database - running on FreeBSD - with an
> Windows Client for many
> times.
> ---------------------------------------------------------------------------
>---------------------- 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);
> }
> ---------------------------------------------------------------------------
>----------------------
>
> My second
> attempt:
> ---------------------------------------------------------------------------
>---------------------- PGconn *conn;
> conn = PQconnectdb("hostaddr='192.168.1.34'
> port='5432'");
> ---------------------------------------------------------------------------
>---------------------- I get errors , durring i try to connect with
> PQsetdbLogin:
> "connectDBStart() -- connect() failed Is the postmaster running (with -i)
> at '192.168.1.34' and accepting connections on TCP/IP port 5432?"
>
> If i try to connect with PQconnectdb, the postmaster says: "Unexpected EOF
> of client connection"
> The Client says: "fe_sendauth: authentication type 5 not supported"
>
> What have I done wrong??
> thx Michael
> I use M$ VC++ 6 SP 5 on Win2000 SP3





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-06-01 21:55 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 08:15 Got Problems with libpg.dll Michael Vodep <mvodep@gmx.net>
2003-06-01 21:55 ` Jan Emonson & Rick Gregory <jr@gbgsoft.com>

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