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.
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
application.properties, I tried removing the spring.datasource.username field and the spring.datasource.password field, then I got a different error.
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!