I am installing PostgreSQL (V 9.6.16) on macOS Catalina 10.15.1. Before it finishes installing I am getting the following error:
Problem running post-install step. Installation may not complete correctly The database cluster initialisation failed.
How can I solve this?
Step by step guide to set up a local PostgreSQL on Mac using DBngin: Download DBngin from it's download page and install on your Mac just like any other Mac apps. Open DBngin and click on + new server button. Choose PostgreSQL from the driver list, choose your PostgreSQL version, and name you server.
Open teminal and run :
sudo dscl . -create /Users/postgres UserShell /bin/sh
sudo dscl . -create /Users/postgres NFSHomeDirectory /Library/PostgreSQL
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With