'Not able to connect to psql (only superuser) in terminal and im thinking this is causing the code I am trying to output to get an error

enter image description here

I am getting this message when I try to enter "psql" in the terminal.

So far I have manually removed an "encrypted" password and replaced it to "password" in pgAdmin4 sql entry for users.

here is the code and the error it calls back:

postgres-# \q
➜  ~ psql
Password for user ao: 
psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed:
      FATAL:  password authentication failed for user "ao"


Sources

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

Source: Stack Overflow

Solution Source