Relational Database Connectiong

Sometimes when I try to get the postgres terminal going I get this error:

codeally@474f9ec8373c:~/project$ psql --username=freecodecamp --dbname=postgres;
psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: No such file or directory
Is the server running locally and accepting connections on that socket?
codeally@474f9ec8373c:~/project$

Any way past this (I have tried several things to remedy this).

Thanks,
Gerry

What project are you on @gerryhoekema? Doing the reset steps should work for any of the practice projects. That may not work for the certification projects.

I was on the Create a Celestial Database. I wound up re-starting my PC’s (both) and got past the error.

1 Like