0

I have installed postgreSQL and I have made a password for Postgres 'admin'. I can log in with the postgres and password as long as its in the local host, as soon as I change the host form localhost to an IP it doesn't accept the password, we have another user that I can use but since its not a superuser I cant modify or make procedures is pgAdmin.

So the question is: Can I somehow reset the password for the postgres, I have tried to modify pg_hpa.config

host    all             all             127.0.0.1/32           trust
# IPv6 local connections:
host    all             all             ::1/128                trust

but that did me no good, so any suggestions of how to reset, or add a password (I also tried this on: ALTER USER postgres VALID UNTIL 'infinity';) or change is would be appreciated.

2
  • What's the error message when trying to connect non-locally? Commented Nov 5, 2013 at 16:53
  • It said that the password was incorrect Commented Nov 6, 2013 at 7:10

2 Answers 2

1

I actually have this problem resolved, I couldn't get in there because I only had the local password but fortunately our database manager got the postgres password for the IP that we use. Sorry to have taken up your time guys and thanks.

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

Comments

0

Check this out: Postgres password

or this: Stackoverflow Postgres Password

2 Comments

Well I might have done something wrong, anyway it still asks the password from me, and I couldnt see the other tips because they were confidential
Here's a final link which might help: dba.stackexchange.com/questions/36137/…

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.