Unable to restart "Build a Database of Video Game Characters"

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).

There is a reset button there that you should click. Once it is done resetting the environment, close the terminal you are in and open a new one then retry the psql step.

(This question has been asked and answered many times in this forum. Please consider reading through other posts to help yourself faster in future)