Peter Eisentraut wrote:

> On Wed, 22 Mar 2000, Stefano Bargioni wrote:
>
> > $ PGDATA2=/data
> > $ initlocation $PGDATA2
>
> initlocation PGDATA2
>
> > We are initializing the database area with username postgres (uid=40).
> > This user will own all the files and must also own the server process.
> > $ createdb -D $PGDATA2 ucc2
>
> createdb -D PGDATA2 ucc2
>
> > ERROR:  Unable to locate path '/data/ucc2'
> >         This may be due to a missing environment variable in the server
> > createdb: database creation failed on ucc2.

Dear Peter, thank you, the manual has an error: in the initlocation command,
the $ must be deleted; but there is still a problem with createdb:

$ initlocation PGDATA2
We are initializing the database area with username postgres (uid=40).
This user will own all the files and must also own the server process.

Creating Postgres database system directory PGDATA2
Creating Postgres database system directory PGDATA2/base

$ createdb -D PGDATA2 ucc2
ERROR:  Unable to locate path 'PGDATA2/ucc2'
        This may be due to a missing environment variable in the server
createdb: database creation failed on ucc2.

Tia. Stefano


Reply via email to