Monday, November 14, 2022

[How-To] Fix Chocolate PostgreSQL installation error - password (error: FATAL: password authentication failed)



 Error:

A number of discussion threads on postgre password not working.

refer https://stackoverflow.com/questions/12562928/psql-exe-password-authentication-failed-in-windows,

https://stackoverflow.com/questions/18698889/postgresql-on-windows-is-there-a-default-password, and

https://stackoverflow.com/questions/20794035/postgresql-warning-console-code-page-437-differs-from-windows-code-page-125

Explanation:

It could be that the program "...expects an user “postgres” with the password “postgres” for the database connection. But these credentials didn’t work!"

(refer https://nexusger.de/posts/2015-10-30-elixir-postgres-and-chocolatey/)

Solution:

PostgreSQL Version 13 has been found to be installed correctly. User Version 13.

choco install postgresql13 --params '/Password:test /Port:5433' --ia '--enable-components server,commandlinetools'

(refer https://community.chocolatey.org/packages/postgresql/13.9.1)


No comments:

Post a Comment