Re: [INTERFACES] Open database with Pgaccess

From: Leo Cyr <lcyr(at)itnetsys(dot)com>
To: "fabien(dot)vallon" <fabien(dot)vallon(at)wanadoo(dot)fr>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Open database with Pgaccess
Date: 1999-02-28 16:00:12
Message-ID: Pine.LNX.4.04.9902281046150.389-100000@mydesk.home.itnetsys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

By default postgres only listens on Unix domain sockets NOT TCP/IP. You
need to edit the startup script for postgres and pass the call to
postmaster the "-i" parameter. You should see this and more with man
postmaster. I use my own build of postgres so my startup scripts is home
brew, but you can start by following the symbolic link in /etc/rc.d/rc3.d
(if you boot the server to text console) or /etc/rc.d/rc5.d (if the server
boots to some x login). To do this just do an "ls -l | grep post" you
should see where the link points.

As for apache, perl, and postgres I have found if I scrutinized the
directores in the DBD-Pg-<version> directory there is a test.pl for both
standard ops and one for blobs. Note, If your "make test" when you
installed the DBD-Pg stuff that means that the code in test.pl will run.
And is therefore the best simple example around. As far as general doc
on DBI I found great examples to get me started at
www.hermetica.com/technologia/perl/DBI.

On 28 Feb 1999, fabien.vallon wrote:

> I know, it's a basic question (sory) but i didn't find doc.
> I'm working with Postgres6.3.2 and pgacess0.9 (with Linux Redhat 5.2 or
> Debian 2.0)
> I've done :
> * on root account
> * su postgres
> * createuser Dizzy (this user already exists (users-group))
> * that's was Ok
>
> * on Dizzy account
> *createdb KADOCKDB
> *psql KADOCKDB
> *create table client (nom_client char(20) not null primary
> key);
> And all seems OK
>
> But with Pgaccess, I can't open database
> Host localhost
> Port 5432 (???)
> Database KADOCKDB
> Username Dizzy
> Password (Dizzy-Password)
>
> Error connecting database
> Is postmaster running (Yes )
> and accepting TCP.IP connection at 'localhost' on port '5432' (I don't
> know)
>
> Thanks for you answer
>
> ( Where can i find documentation and script about
> Apache->CGI(Perl)->Postgres ?)
> (I've downloaded DBI an DBD)
>
>
>
>
>
>
>

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message fabien.vallon 1999-02-28 16:07:42 Open Database with Pgaccess
Previous Message fabien.vallon 1999-02-28 15:57:57 Open database with Pgaccess