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.
-
1I gather you've read the installation guide?Milen A. Radev– Milen A. Radev2012-04-28 13:47:40 +00:00Commented 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?Vasseurth– Vasseurth2012-04-29 13:54:32 +00:00Commented Apr 29, 2012 at 13:54
-
Thank you, I realized I had made a mistake, complete uninstalled and then reinstalled.Vasseurth– Vasseurth2012-04-29 14:04:34 +00:00Commented Apr 29, 2012 at 14:04
Add a comment
|
1 Answer
In the future, you do not need to completely reinstall, you can change the password with:
ALTER USER postgres WITH PASSWORD '<newPassword>';
2 Comments
Vasseurth
And you do not need the current password to do so?
Igor
@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.