Hello,
I am currently doing the Build a Database of Video Game Characters course, located inside the Relational Databases Certification course.
The course is asking me to log in to psql by running the psql --username=freecodecamp --dbname=postgres command, but when I run it, the
following error appears:
psql: error: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?
I’m not sure of what is causing this error. Could you please help me out?