0

Hey guys i have been trying to download it from the below link http://www.enterprisedb.com/products-services-training/pgdownload

But once i download it, and try to run the set up it is giving me an error saying

An existing data directory has been selected but its neither empty, or a recognizable date directory,I tried changing the path on which it has to be downloaded it is not letting me do so

4 Answers 4

1

I'd recommend trying a package manager such as brew. Once you have it installed simply:

brew install postgres
Sign up to request clarification or add additional context in comments.

1 Comment

hey Kevin i tried doing that somehow i managed to get posturesql installed but now its having issues connecting to the server
1

Disclaimer: I have no experience with Postgres on Mac (or with a Mac at all).

The installer will create a directory where PostgreSQL stores all the database data and information. Without this so called "data directory" PostgreSQL does not work.

This data directory has nothing to do with your download directory.

Apparently you are pointing the installer to a directory that already exists and contains some data (not necessarily Postgres related data).

When being prompted for the "data directory" during installation you have to select an empty directory.

I don't know if the selection dialog of the installer will let you create a new directory, so you might want to create that directory manually before starting the installer.

1 Comment

thank a lot guys i tried doing al it could possible ask me to do but now I'm stuck on connecting the server
0

Recently had this issue after attempting a reinstall of PostgreSQL on macOS 11.6 Removing the contents of the /Library/PostgreSQL/14/data directory seemed to resolve the issue and was able to successfully reinstall

Comments

0

I found that if I create an empty folder and install into that it works.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.