db connection fails - Mailing list pgsql-admin

From Mark Tessier
Subject db connection fails
Date
Msg-id 20020629154106.084e7ae3.mt@open2web.com
Whole thread Raw
Responses Re: db connection fails
List 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



pgsql-admin by date:

Previous
From: Tim Ellis
Date:
Subject: TeDia2SQL 0.77 (Dia-->SQL DDL Tool) Released
Next
From: "Bronx"
Date:
Subject: Change date format