Build a Database of Video Game Characters - Build a Database of Video Game Characters

Tell us what’s happening:

The internet connection dropped during the tutorial, so when I tried to resume after restoring internet, I got the CodeRoad progress saved(to the step before beging disconnected) but I cannot connect to the database anymore in the terminal:

psql --username=freecodecamp --dbname=mario_database
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”?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36

Challenge Information:

Build a Database of Video Game Characters - Build a Database of Video Game Characters

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-database-of-video-game-characters/5f2c289f164c29556da632fd.md at main · freeCodeCamp/freeCodeCamp · GitHub

I discovered that running:

sudo service postgresql restart

and then

psql --username=freecodecamp --dbname=mario_database

fixes the problem.