> > > Have you tried doing a network connection with your "apache" user? (su -
> > > apache; psql -h localhost group3.)
> >
> > Yes, I've tried it and get the following:
> >
> > psql: could not connect to server: Connection refused
> > Is the server running on host 192.168.1.2 and accepting
>
I have a cgi script written in C++ and compiled with libpq++. The script attempts to
connect to a postgresql database but fails, although I can connect to the database on
the command line. I'm wondering if there is an error log somewhere that I can access
that would give me more information abo
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=
I just realized, after trying to compile a C++ script, that I forgot to compile the
C++ interface library during the installation of postgres. At least I'm assuming this
to be the case as /usr/include/pgsql -lpq++ doesn't exist. My question is: do I need
to recompile postgres to create the /usr
I just realized, after trying to compile a C++ script, that I forgot to compile the
C++ interface library during the installation of postgres. At least I'm assuming this
to be the case as /usr/include/pgsql -lpq++ doesn't exist. My question is: do I need
to recompile postgres to create the /usr