I’m halfway through the “Build a Database of Video Game Characters” course and took a break. This morning, I’m able to access the project through “Codespaces”, and it successfully loads my progress to where I left off yesterday.
Once I’m inside the terminal and attempt to connect to the
“psql --username=freecodecamp --dbname=postgres” & “psql --username=freecodecamp --dbname=mario_database”
it says…
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?
I’ve tried to use the following commands to reset the container…
cd /workspaces
ls
cd rdb-alpha
pwd
Cmd+Shift+P & Dev Containers: Rebuild Container (To rebuild the container).
I’m running on a macOS (although I don’t believe this should affect me from reconnecting to the server).
