From: | Thara Vadakkeveedu <tharagv(at)yahoo(dot)com> |
---|---|
To: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | accidentally deleted data directory |
Date: | 2013-09-22 16:05:33 |
Message-ID: | 1379865933.14475.YahooMailNeo@web125003.mail.ne1.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi
I am new to postgresql. I have postgresql 9.2 installed on Red hat linux 6.4
I accidentally deleted data directory this morning (/var/lib/postgresql/9.2/data)
I tried to start posgresql 9.2 service
service postgresql9.2 start
I got a amessage to initialize the db first.
so I ran service postgresql-9.2 initdb
this was successful
then i tried service postgresql-9.2 start
this failed.
pgstartup.log indicated I can start the database server using:
/usr/pgsql-9.2/bin/postgres -D /var/lib/pgsql/9.2/data
or
/usr/pgsql-9.2/bin/pg_ctl -D /var/lib/pgsql/9.2/data -l logfile start
However I am unable to start database as root
That is the only account I use on this server.
I tried su - postgres
and then from the bash shell i tried to run these commands (tried one at a time)
but it said address in use
there are no processes running on 5432.
How can I start postgres service?
Thanks
Thara.
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2013-09-23 10:48:03 | Re: accidentally deleted data directory |
Previous Message | Grant Fisher | 2013-09-20 17:26:31 | Re: upgrades and streaming replication |