coderoad/coderoad-vscode

Database issue

Gojak10 opened this issue · 1 comments

Describe the bug
Hello. I cant connect to PostgreSQL server.
I advanced in some steps in the tutorial: 'Learn Relational Databases by Building a Mario Database' (around 35%) but after this point database stopped to respond.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Ctrl+Shift+P'
  2. Click on 'CodeRoad: Start'
  3. Scroll down to 'Terminal'
  4. Entered: psql --username=freecodecamp dbname=postgres
  5. See error: 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"?

Expected behavior
Connect to database.
PostgreSQL db

Desktop:

  • Platform: Windows
  • OS: 10
  • Version: 20H2

VSCode :

  • Version: 1.60.

Additional context
Followed the steps to set-up CodeRoad on VS code from: https://www.freecodecamp.org/news/how-to-run-freecodecamps-relational-databases-curriculum-using-docker-vscode-and-coderoad/
PostgreSQL db
.

moT01 commented

Sorry for your struggles @Gojak10, and thanks for reporting. This is not a coderoad issue and is a problem with the tutorial. I would recommend closing this issue and creating a new one on the freeCodeCamp repo

The best way to go through the tutorials at the moment is to do it all in one session. There are some potential issues that arise sometimes when closing and continuing a tutorial or using the reset button.