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 D5B2392537D for ; Sun, 1 Jun 2003 17:55:06 -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 99373-10 for ; Sun, 1 Jun 2003 17:54:56 -0400 (EDT) Received: from franklin1.gbgsoft.com (unknown [209.167.102.146]) by developer.postgresql.org (Postfix) with SMTP id E793D92526E for ; Sun, 1 Jun 2003 17:54:55 -0400 (EDT) Received: (qmail 31058 invoked from network); 1 Jun 2003 21:54:55 -0000 Received: from unknown (HELO linux) (209.167.102.154) by 0 with SMTP; 1 Jun 2003 21:54:55 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Jan Emonson & Rick Gregory Reply-To: jr@gbgsoft.com To: pgsql-interfaces@postgresql.org Subject: Re: Got Problems with libpg.dll Date: Sun, 1 Jun 2003 17:55:56 -0400 User-Agent: KMail/1.4.3 References: <19719.1054368945@www6.gmx.net> In-Reply-To: <19719.1054368945@www6.gmx.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200306011755.56498.jr@gbgsoft.com> X-Virus-Scanned: by amavisd-new X-Archive-Number: 200306/11 X-Sequence-Number: 4222 This does not sound like a problem with your useage of libpq.dll, but more= =20 that the backend is not accepting IP based connections. Can you connect wit= h=20 pgAdmin II or orther ODBC vehicles?=20 If not, then look at pg_hba.conf to see which connections configuration=20 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 =3D PQsetdbLogin("192.168.1.34", "5432", NULL, NULL, > "mainhm","mike","****"); > > CString err; > if (PQstatus(conn) =3D=3D 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 =3D PQconnectdb("hostaddr=3D'192.168.1.34' > port=3D'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