Build a Mario Database

Hi Everyone!

I was passing tutorial on Mario database. after a few hours back to it and I can’t run any command in terminal. I have tried this: psql --username=freecodecamp --dbname=mario_database .
but an error comes up:
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?

what’s wrong with this relational database tutorial? CodeAlly(Remote env) doesn’t work!
locally(local env) makes many errors !

what should I do to solve this?

error you’re facing with the PostgreSQL server usually happens when it’s not running or misconfigured. Try restarting it and checking the socket configuration. Also, consider comparing settings between your local and remote environments to troubleshoot further.

1 Like

Thank you so much for giving your time! really appreciate