NAce01
NAce01

Reputation: 57

How to Reset PostgreSQL on Windows 11

I uninstalled PostgreSQL 14 on my Windows 11 laptop and installed PostgreSQL 12. For some reason, I can't log into my server or create a database. I keep getting this error: "connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user "postgres"". I tried using my old and new passwords that I created when I uninstalled and reinstalled PostgreSQL (I had to uninstall and reinstall PostgreSQL 14 once more before deciding to switch to an older version so that I could get XAMPP to work), but I just keep getting the same error. Does anyone have any idea how to fix this?

Upvotes: 0

Views: 476

Answers (1)

Jessy Ndaya
Jessy Ndaya

Reputation: 314

Try to delete C:\Users\<user>\Documents\postgresdata

Upvotes: -2

Related Questions