Number Guessing Game - reopen the postgres shell problem

I had close connection without save the database. When I tried to reopen the project to recover the database, I got all the passing test that I had when I close it, but I can’t open th postgres shell, when I enter psql --username=freecodecamp --dbname=postgres the error message is:
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”?
Thanks

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36

Challenge Information:

Number Guessing Game - Build a Number Guessing Game

do you remember what you did to reopen the project? Did you just run Reopen or did you run Rebuild and Reopen?

HI
I did rebuild and reopen

unfortunately if you read the README.md file that was included with the rdb-alpha it said that using Rebuild and Reopen after the first time will erase everything.

I don’t know if there is a way to recover the db now.

ok, thanks, I will restart all again.

i wish you best of luck (sorry you had to lose your work)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.