Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3072 of 3160
Post > Topic >>

Re: problem with 8.1: createdb: could not connect to database

by fbax@[EMAIL PROTECTED] (Frank Bax) Apr 13, 2008 at 12:25 AM

Jaisen N.D. wrote:
> postgres@[EMAIL PROTECTED]
 /usr/lib/postgresql/8.1/bin/initdb -D 
> /var/lib/postgresql/data
> The files belonging to this database system will be owned by user 
> "postgres".
> This user must also own the server process.
> 
> The database cluster will be initialized with locale en_IN.
> The default database encoding has accordingly been set to UTF8.
> 
> initdb: directory "/var/lib/postgresql/data" exists but is not empty
> If you want to create a new database system, either remove or empty
> the directory "/var/lib/postgresql/data" or run initdb
> with an argument other than "/var/lib/postgresql/data".



You should try one of the two options mentioned in the error message.

The directory you use for -D option on initdb needs to be empty.

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 1 Posts in Topic:
Re: problem with 8.1: createdb: could not connect to database
fbax@[EMAIL PROTECTED] (  2008-04-13 00:25:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 19:07:01 CDT 2008.