Skip site navigation (1) Skip section navigation (2)

Missing Data Directory

From: Jon Williams <jkw1(at)students(dot)uwf(dot)edu>
To: PostgreSQL NOVICE listserve <pgsql-novice(at)postgresql(dot)org>
Subject: Missing Data Directory
Date: 2002-11-30 18:54:44
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

When I try to start PostgreSQL, this happens:

[root(at)betelgeuse /root]# /etc/rc.d/init.d/postgresql start
Starting postgresql service: /usr/bin/postmaster does not find the
database system.  Expected to find it in the PGDATA directory
"/var/lib/pgsql", but unable to open file with pathname

No data directory -- can't proceed.
postmaster []
[root(at)betelgeuse /root]#

The same thing happens when PostgreSQL tries to start when the system
boots up.  I have tried everything I can think of including reinstalling
PostgreSQL (which by the way was done through RPM).  What do I need to
do to create pg_class?  Is there anything else I need to do to get
PostgreSQL to work?

(I am using Red Hat Linux 6.0 and PostgreSQL version 6.4.2.)

Jon Williams

pgsql-novice by date

Next:From: Dieter MaasDate: 2002-12-01 10:05:13
Subject: DBF-Files
Previous:From: Rod KreislerDate: 2002-11-30 18:22:02
Subject: Re: enum

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group