Learn Relational Databases by Building a Mario Database - Build a Mario Database

Tell us what’s happening:
I am stuck at the second step. It tells me to write “psql --username=freecodecamp --db=postgres” in the terminal. An error occurs when I write it and it says no file or directory found. Maybe the default psql file is deleted. Please help me and tell me what to do to save that file or to pass this level.

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/ Safari/537.36

Challenge: Learn Relational Databases by Building a Mario Database - Build a Mario Database

Link to the challenge:

I am not exactly sure what’s going on, but I have errors accessing other relation database lessons, too. I just went to another lesson and waited it out.

Have you tried everything that’s described here ?

The exact command required is:
psql --username=freecodecamp --dbname=postgres.
(Which is slightly different than the command you’ve given us).
Could that be the issue?

There are connection issues sometimes though, so if you’re still having trouble, perhaps give it a while and try again.

Thanks for the tip but I tried it and again, an error occured. The error:psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: No such file or directory
Is the server running locally and accepting connections on that socket?

1 Like

Can you show a screenshot of this error occurring please?

1 Like

I think you’re experiencing the connection errors which are affecting lots of other people right now. There have been outage problems with CodeAlly in the last few days but they’re intermittent. Hopefully it will be resolved very soon!

1 Like

Thank you so much for this source. I installed this course and now I am proceeding in my local VS code thanks to you. You saved my life!

1 Like