SQL >> Databasteknik >  >> RDS >> PostgreSQL

Lösa psql FATAL password authentication failed

En tillfällig lösning är att redigera pg_hba.conf och sätta lokal inloggning till trust:

# Database administrative login by Unix domain socket
local all postgres trust

Återställ sedan lösenordet:

sudo -u postgres psql template1
ALTER USER postgres with encrypted password 'your_password';

Ställ tillbaka pg_hba.conf till md5 igen.

  1. Heroku Postgres FATAL: no pg_hba.conf entry for host från extern app

  2. Rails "FATAL - Peer authentication failed for user (PG::Error)"

  3. Lösa Peer authentication failed i psql

  4. Django: psycopg2.OperationalError - FATAL: Peer authentication failed for user