'pgAdmin 4: Why Can't I Access Server?

In pgAdmin 4, when I try click on the PostgreSQL 14 server (or any other) I get an error message that I don't understand:

connection to server at "localhost" (::1), port 5432 failed: could not initiate GSSAPI security context: The operation or option is not available: Credential for asked mech-type mech not found in the credential handle connection to server at "localhost" (::1), port 5432 failed: FATAL: role "postgres" does not exist



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source