0

I have tried numerous suggestions from other posts and SO questions but none seem to do the trick. I just installed PostgreSQL with brew install, then ran the initdb command. The output said the user would be used for the DB, however, the user is always displayed as the mac user. What might I be missing?

output from console:

createdb: could not connect to database template1: FATAL: password authentication failed for user "macuser" 
Users-MBP:~ macuser$ 

1 Answer 1

1

Just delete installed postgresql by doing below.

Remove previous versions of PostgreSQL brew uninstall --force postgresql Delete all Files of Postgres rm -rf /usr/local/var/postgres

Download macOS packages from Postgresql and install it.

https://www.postgresql.org/download/macosx/

Default user will be postgres and password field will be required when install

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

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.