Re: Postgres : error while running initdb

Lists: pgsql-cygwin
From: Savita Banginwar <savita(at)sutra(dot)co(dot)jp>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Postgres : error while running initdb
Date: 2003-07-31 05:15:04
Message-ID: 5.0.2.7.2.20030731104400.00bda0d8@dns1.sutra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg토토 결과SQL

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


From: Jason Tishler <jason(at)tishler(dot)net>
To: Savita Banginwar <savita(at)sutra(dot)co(dot)jp>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Postgres : error while running initdb
Date: 2003-08-01 13:42:05
Message-ID: 20030801134205.GB2240@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin

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