Tell us what’s happening:
I accidentaly closed the whole VScode window when i was halfway through the Build a Database of Video Game characters project. And now I am not able to connect with the database.
When I enter this command: psql --username=freecodecamp --dbname=postgres
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 have tried reseting the lesson!
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/145.0.0.0 Safari/537.36
Challenge Information:
Build a Database of Video Game Characters - Build a Database of Video Game Characters
https://www.freecodecamp.org/learn/relational-databases-v9/workshop-database-of-video-game-characters/build-a-database-of-video-game-charactersSubject: Connection Issue with PostgreSQL After Closing VSCode
I accidentally closed the entire VSCode window while I was working on the “Build a Database of Video Game Characters” project. Now, I am unable to connect to the database.
When I enter the following command: psql --username=freecodecamp --dbname=postgres
I receive this error message:
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 have also tried resetting the lesson, but the issue persists.