db connection fails

From: Mark Tessier <mt(at)open2web(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: db connection fails
Date: 2002-06-29 19:41:06
Message-ID: 20020629154106.084e7ae3.mt@open2web.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I get a script error when trying to connect to postgres. It fails in the following part of the script:

PgDatabase conn ("host=localhost dbname=group3");

if (conn.ConnectionBad())
{
...
}

/var/log/messages shows

authentication failure; logname=capmag uid=502 euid=0 tty= ruser = rhost= user=postgres

As "capmag" user with DBCREATE privileges, created db called group3. As I'm accessing group3 via html and C++ script in cgi-bin, I've created a user named "apache" with grant all priviledges in group3.

Mark

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bronx 2002-06-29 23:12:51 Change date format
Previous Message root 2002-06-29 09:39:42 how to re-configure postgresql-rpm version