Tell us what’s happening:
psql --username=freecodecamp --dbname=postgres
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: Peer authentication failed for user "freecodecamp"
Your code so far
cp: cannot stat './.freeCodeCamp/pg_hba.conf': No such file or directory
* Restarting PostgreSQL 12 database server [ OK ]
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: Peer authentication failed for user "postgres"
**Your browser information: **
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Challenge: Learn SQL by Building a Student Database: Part 2 - Build a Student Database: Part 2
Link to the challenge: