Re: Error: The database does not exist on the server

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Steve Bond <bondy(at)skysurf-airdsl(dot)co(dot)uk>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Error: The database does not exist on the server
Date: 2003-09-14 23:07:40
Message-ID: 1063580860.18281.1691.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, 2003-09-12 at 15:50, Steve Bond wrote:
> I'm running postgresql on a linux box and having trouble connecting to my
> database from another machine. When I do
>
> >psql -l
>
> I get a list of 4 databases but I cannot connect to any of them remotely,
> as they cannot be found. I'm using
>
> /var/lib/pgsql/data/
>
> as my data directory. Am I using the wrong directory or is there a way to
> specify which directory for the client machine to look in?
> Thanks in advance.

You cannot connect from another machine unless you tell the postmaster
on the server to allow it. The postmaster must be started with the -i
option or else you must have `tcpip_socket = true' in postgresql.conf
(in the database directory). You must also configure pg_hba.conf to
allow host connections from the remote machine.

The remote client does not need to know anything about where the
database is stored on the server.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"The fool hath said in his heart, There is no God..."
Psalm 14:1

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message santoso berkah 2003-09-15 05:04:34 How to access service using LAN
Previous Message Jeffrey Melloy 2003-09-14 23:03:58 Re: Error: The database does not exist on the server