Learn SQL by Building a Student Database: Part 1 - Build a Student Database: Part 1

Tell us what’s happening:

I am trying to run psql --username=freecodecamp --dbname=postgres for the Learn SQL by Building a Tudent Database: Part 1 course, but I receive the below error message.

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”?

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 Edg/138.0.0.0

Challenge Information:

Learn SQL by Building a Student Database: Part 1 - Build a Student Database: Part 1

i would try to rebuild the container. Not sure why the command wouldn’t work if the container was built without issue.

I reset the lesson and tried again, and it worked. I should have tried that first.

Thank you for the quick response.

1 Like

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