Except when i connected with -h localhost in psql line command.I Observed too that "localhost:8080/MyJSPSiteLogIn" - showed: Fatal: autentication error with user "user".I noted had two versions of postgres running in the same service.I had faced similar issue. If you forgot your postgres password, you can login without password by changing “md5” to “trust” in pg_hba.conf file and restart the PostgreSQL server.
I had to do several things to get this working. -- Hyderabad, India. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer.

Re: password authentication failed for user postgres at 2010-03-03 18:10:39 from Major Services Browse pgsql-admin by date

Private self-hosted questions and answers for your enterpriseProgramming and related technical career opportunitiesAny installer since version 8.0 asked you for a password. I have typed user as "postgres" and password "postgres", because it worked before. To other new users, DON'T FORGET THE SEMICOLON at the end of the ALTER USER line. Stack Overflow for Teams is a private, secure spot for you and

Change all methods to trust, restart db, then as root: So that you can never have all your superusers conpromised.How can setting a password for postgres lead to having all superusers compromised?setting password doesn't lead to having all superusers compromised but not setting the password will guarantee that you'll never have all superusers compromised. site design / logo © 2020 Stack Exchange Inc; user contributions licensed under No portion of this website may be copied or replicated in any form without the written consent of the website owner.© 2015 – 2019 All rights reserved. PostgreSQL won't run as Administrator for security reasons and the installer generally sets it up with a "postgres" user account in PostgreSQL 9.1 and older 1. *** Please share your thoughts via Comment ***While doing your first PostgreSQL login, Have you got an error like: password authentication failed for user “postgres”.Here,You can access other related and important articles.When we install PostgreSQL on Linux, by default, no any password assigns to the Postgres super user.If you forgot your postgres password, you can login without password by changing “md5” to “trust” in pg_hba.conf file and restart the PostgreSQL server.Now again change your pg_hba.conf entry from “trust” to “md5” and restart the PostgreSQL server. your coworkers to find and share information.