Search code examples
postgresqlinstallation

"existing data directory" error when installing PostreSQL for mac


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


Solution

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

    brew install postgres