Re: starting up database server + user postgres

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jennliu(at)MIT(dot)EDU
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: starting up database server + user postgres
Date: 2003-09-01 21:07:37
Message-ID: 11031.1062450457@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Jennifer Liu <jennliu(at)MIT(dot)EDU> writes:
> root# /usr/local/pgsql/bin/createdb test
> psql: could not connect to server: No such file or directory
> Is the server running locally and accepting
> connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
> createdb: database creation failed

The PG postmaster isn't running, evidently. You didn't say what Linux
distro you are using, so it's hard to give exact details about how to
start it, or to tell whether there's any preliminary setup you need to
do. It seems odd that you have a postgres group but not a postgres
user, though.

> root# chown postgres /usr/local/pgsql/data
> chown: `postgres': invalid user

Is that directory already there? If so, what user owns it? That's
probably the user you want to start the postmaster as.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message mathan 2003-09-02 03:47:39 Re: starting up database server + user postgres
Previous Message Luis H. 2003-09-01 19:34:40 Re: ORDER BY question