Re: Recover PostgreSQL database folder data

From: Edson Lidorio <edson(at)openmailbox(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Recover PostgreSQL database folder data
Date: 2017-04-21 21:13:21
Message-ID: 23b024bd-f20f-6e59-c8cf-911405b50c3b@openmailbox.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 21-04-2017 18:02, Adrian Klaver wrote:
> Chown -R postgres: postgres /var/lib/pgsql/9.6/data
After the command, I have the errors:

Apr 21 18:11:41 localhost postgresql96-check-db-dir:
"/var/lib/pgsql/9.6/data/" is missing or empty.
Apr 21 18:11:41 localhost postgresql96-check-db-dir: Use
"/usr/pgsql-9.6/bin/postgresql96-setup initdb" to initialize the
database cluster.
Apr 21 18:11:41 localhost postgresql96-check-db-dir: See
/usr/share/doc/postgresql96/README.rpm-dist for more information.
Apr 21 18:11:41 localhost systemd: postgresql-9.6.service: control
process exited, code=exited status=1
Apr 21 18:11:41 localhost systemd: Failed to start PostgreSQL 9.6
database server.
Apr 21 18:11:41 localhost systemd: Unit postgresql-9.6.service entered
failed state.
Apr 21 18:11:41 localhost systemd: postgresql-9.6.service failed.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2017-04-21 21:29:58 Re: Recover PostgreSQL database folder data
Previous Message Adrian Klaver 2017-04-21 21:02:30 Re: Recover PostgreSQL database folder data