From: Mark Tessier <mt@open2web.com>
To: pgsql-admin@postgresql.org
Subject: db connection fails
Date: Sat, 29 Jun 2002 15:41:06 -0400
Message-ID: <20020629154106.084e7ae3.mt@open2web.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mt@open2web.com
Subject: Re: db connection fails
In-Reply-To: <20020629154106.084e7ae3.mt@open2web.com>
References: <20020629154106.084e7ae3.mt@open2web.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox