PSQL terminal Login

“I’m encountering difficulties logging back into my database after previously using the command psql --username=freecodecamp dbname=postgres . I need to resume my work. How can I log back in?”

This is the Error am getting.

camper: /project$ psql --username=freecodecamp dbname=postgres
psql: error: connection to server at "127.0.0.1", port 5432 failed: FATAL:  role "freecodecamp" does not exist
1 Like

i am having the same problem

Oddly enough I’ve been able to resolve this issue by opening the GitPod workspace in the browser, running the psql command to connect to the database, then going to the hamburger menu and selecting Open in VS Code.

i believe the solution is to run the “CodeRoad: Start” command. I have to do that everytime I use gitpod. it has become such a habit that whenever i see the error you described, I know that I haven’t started the CodeRoad extension.

Hope this helps!

Clicking the “resert” button in the “CodeRoad: Start” panel may solve the problem