Got Problems with libpg.dll

Поиск
Список
Период
Сортировка
От Michael Vodep
Тема Got Problems with libpg.dll
Дата
Msg-id 19719.1054368945@www6.gmx.net
обсуждение исходный текст
Ответы Re: Got Problems with libpg.dll  (Jan Emonson & Rick Gregory <jr@gbgsoft.com>)
Список pgsql-interfaces
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!



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tim Bunce
Дата:
Сообщение: Re: DBD::Pg 1.30_1 WAS (Re: Prepare and prepare ?)
Следующее
От: David Wheeler
Дата:
Сообщение: Re: DBD::Pg 1.30_1 WAS (Re: Prepare and prepare ?)