Cyprich.com

Occasionally Relevant Insights from a Software Builder

By

Fixing “/var/lib/pgsql/data is missing” Error

After installing an older version of Fedora, I noticed an error message that quickly appeared every time the system boots and its starting the many services that Linux uses:

/var/lib/pgsql/data is missing

The solution to this PostgreSQL problem is shown with the error message but the screen scrolls very quickly (or is unreadable with a very fast computer) so its difficult to catch. The command to correct this issue is:

service postgresql initidb

Run this from a command console (i.e. Konsole) and then the Postgres database will operate correctly.

One Response to Fixing “/var/lib/pgsql/data is missing” Error

  1. Max Rößler says:

    There is on “i” to much in the command line command

    It must look as follow: service postgresql initdb

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.