FreeCodeCamp VSCode Terminal

camper: /project$ psql --username=freecodecamp --dbname=postgres
psql: error: connection to server at “127.0.0.1”, port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
How do I resume the project?

this is to connect to the server in your local environment
you could try restarting the VM

How do i go about that?

stop the gitpod workspace, if that is what you are using. There is the command to do that in one of the menus. Then once it has finished stopping, open it again

Hey, i stopped the workspace then opened again to continue my progres using the command below
psql --username=freecodecamp --dbname=postgres

But i get the error below

Does it lead me to the decision to start over with my progress as a new course again?

Could you help?

Try hitting the reset button on CodeRoad @litiema. Let us know if that works.

Thanks @moT01 , Solved :100:

2 Likes