Re: [ADMIN] libpq++ question

From: Maarten Boekhold <maartenb(at)dutepp0(dot)et(dot)tudelft(dot)nl>
To: Andreas Hauck <Andreas(dot)Hauck(at)earthling(dot)net>
Cc: pgsql-admin(at)postgreSQL(dot)org
Subject: Re: [ADMIN] libpq++ question
Date: 1998-06-15 07:03:48
Message-ID: Pine.SUN.3.91.980615090220.21121B-100000@dutepp0.et.tudelft.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sun, 14 Jun 1998, Andreas Hauck wrote:

> Hi,
>
> I try to access postgres through a CGI program using libpq++. If I mimic a
> query by setting the REQUEST_METHOD and QUERY_STRING environment variables it
> works perfectly well. However, accessed through the net, connection is
> refused. Probably the environment settings in PgEnv(...) are wrong. Can
> anybody help? BTW, the returned error message, called as in the examples by
> data.ErrorMessage(), is empty.

You probably haven't configured your postgresql server to allow accesses
by the user your web-server is running as(CREATE USER). Also make sure
that that user has the appropriate access rights to the tables it needs to
access (GRANT/REVOKE)

Maarten

_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems |
| Department of Electrical Engineering |
| Computer Architecture and Digital Technique section |
| M(dot)Boekhold(at)et(dot)tudelft(dot)nl |
-----------------------------------------------------------------------------

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rodolfo Garcia 1998-06-16 11:55:37 How to change VI editor
Previous Message Andreas Hauck 1998-06-14 18:10:24 libpq++ question