Search Postgresql Archives

Re: Initdb failed in PostgreSQL 7.3.21

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 18, 2008 6:15 AM, Kakoli Sen <kakolis@xxxxxxxxxxxxxx> wrote:
>
>
>
> Hi,
>         I install PostgreSQL 7.3.21 successfully with sudo and could start
> the postmaster as sudo.

The postmaster won't starte without a valid data directory.

>   Then I want to initialise my own db as unprivileged user. I run the
> following commands:
>
> root# mkdir /usr/local/pgsql/data
> root# chown kakolis /usr/local/pgsql/data
> root# su kakolis
> kakolis$ initdb -D /usr/local/pgsql/data.
>
> The last command gives the following output:
> Fixing permissions on existing directory /usr/local/pgsql/data... ok
> creating directory /usr/local/pgsql/data/base... ok
> creating directory /usr/local/pgsql/data/global... ok
> creating directory /usr/local/pgsql/data/pg_xlog... ok
> creating directory /usr/local/pgsql/data/pg_clog... ok
> creating template1 database in /usr/local/pgsql/data/base/1...
> initdb failed.
>
> Where is the problem?

The db is already initted?  Just guessing.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux