• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Spring boot – org.postgresql.util.PSQLException: FATAL: password authentication failed for user “postgres”

Resolved: Spring boot – org.postgresql.util.PSQLException: FATAL: password authentication failed for user “postgres”

0
By Isaac Tonny on 16/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I watched Amigos spring boot tutorial course, and I tried to follow along in Windows. Everything seems to work perfectly, until the unit Creating and Connecting to Database, at 36:15.
In my SQL shell:
in IntelliJ, inside application.properties.
After I run the program, I encounter the following error in my stack trace.
And this is what I’ve tried
0.) Ensure that the input in the username field and the password field is the exact same as when I first installed postgreSQL, with no additional space bar or other blank characters
1.) In application.properties, I tried removing the spring.datasource.username field and the spring.datasource.password field, then I got a different error.
2.) I’ve read the answer to a similar question. So I changed the configuration in pg_hba.conf, from the following property host all all all md5, to host all all all trust. Apart from the fact that I don’t have to provide a password when running psql anymore, nothing else seems to work.
I’m now struggling to run this program correctly; what else should I do.
Any kind of help will be appreciated.

Answer:

There is a port mismatch on 5433 and 5432. Please check.

If you have better answer, please add a comment about this, thank you!

java postgresql spring spring-boot sql
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Table data is coming as empty in React

02/04/2023

Resolved: In a Pinescript v5 Strategy why is my bool not working?

02/04/2023

Resolved: net::ERR_HTTP2_PROTOCOL_ERROR by http get request angular 15.2

02/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.