2

I just recently installed postgresql for mac with this. The problem I get, however, is that I never stated a password for the user 'postgres' but this seems vitally necessary to do anything with postgresql.

3
  • 1
    I gather you've read the installation guide? Commented Apr 28, 2012 at 13:47
  • Hmm, It doesn't prompt me to do the middle part (setup a password and other settings). Is there a way to completely remove postgresql? Commented Apr 29, 2012 at 13:54
  • Thank you, I realized I had made a mistake, complete uninstalled and then reinstalled. Commented Apr 29, 2012 at 14:04

1 Answer 1

2

In the future, you do not need to completely reinstall, you can change the password with:

ALTER USER postgres WITH PASSWORD '<newPassword>';
Sign up to request clarification or add additional context in comments.

2 Comments

And you do not need the current password to do so?
@Planetpluto I believe that as long as you are running the command as a privileged user, you should be fine. So if the superuser doesn't have a password, as long as your are logged into that account then this should still work, yes. Please correct me if this does not turn out to be the case.

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.