Thread: error on starting server

error on starting server

From
Robert Morgan
Date:
Hi thanks for your previous replies, I decided to remove the RH embedded
postgresql and install from source
which I have done and as far as I can tell everything is ok but when I
tried to start it I got the following...

[bob@localhost bob]$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
The files belonging to this database system will be owned by user "bob".
This user must also own the server process.

The database cluster will be initialized with locale en_NZ.UTF-8.

creating directory /usr/local/pgsql/data... mkdir: cannot create
directory `/usr/local/pgsql/data': Permission denied

initdb: failed
[bob@localhost bob]$

any help appreciated.

version is postgresql-7.4.2

Bob



Re: error on starting server

From
joseph speigle
Date:
bob,
looks like you installed into /usr/local/pgsql/
as root then as bob you are trying to install.  The quick thing to do is just check the permissions on
the place where the error comes from

:!


creating directory /usr/local/pgsql/data... mkdir: cannot create
directory `/usr/local/pgsql/data': Permission denied



On Wed, Apr 28, 2004 at 07:27:00PM +1200, Robert Morgan wrote:
> Hi thanks for your previous replies, I decided to remove the RH embedded
> postgresql and install from source
> which I have done and as far as I can tell everything is ok but when I
> tried to start it I got the following...
>
> [bob@localhost bob]$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
> The files belonging to this database system will be owned by user "bob".
> This user must also own the server process.
>
> The database cluster will be initialized with locale en_NZ.UTF-8.
>
> creating directory /usr/local/pgsql/data... mkdir: cannot create
> directory `/usr/local/pgsql/data': Permission denied
>
> initdb: failed
> [bob@localhost bob]$
>
> any help appreciated.
>
> version is postgresql-7.4.2
>
> Bob
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

--
joe speigle
www.sirfsup.com