Thread: Postgres : error while running initdb

Postgres : error while running initdb

From
Savita Banginwar
Date:
Dear Sir,

initdb: The directory /usr/local/pgsql/data exists but is not empty.

If you want to create a new database system, either remove or empty the
directory /usr/local/pgsql/data or run initdb with an argument other than
/usr/local/pgsql/data.


This is the response that I see when I typed in initdb -D
/usr/local/pgsql/data to initialize the database.  I can?t figure out what
is wrong?

Can u please help me....

thanks in advance

regards,
Savita Banginwar
Sutra systems


Re: Postgres : error while running initdb

From
Jason Tishler
Date:
Savita,

On Thu, Jul 31, 2003 at 10:45:04AM +0530, Savita Banginwar wrote:
> initdb: The directory /usr/local/pgsql/data exists but is not empty.
>
> If you want to create a new database system, either remove or empty the
> directory /usr/local/pgsql/data or run initdb with an argument other than
> /usr/local/pgsql/data.
>
> This is the response that I see when I typed in initdb -D
> /usr/local/pgsql/data to initialize the database.  I can't figure out
> what is wrong?
>
> Can u please help me....

What happens when you follow the above suggestions?  That is, does the
following work?

    1. $ rm -fr /usr/local/pgsql/data
       $ initdb -D /usr/local/pgsql/data

    2. $ initdb -D /usr/share/postgresql/data

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6