Build a Number Guessing Game - Build a Number Guessing Game

Tell us what’s happening:

It seems whenever I create a new rdb-alpha project now with databases on my local machine, they don’t work right.

  1. When first started, I cannot connect to postgresql. I check and postgresql is not running. I have to start it with “sudo service postgresql start”.
  2. Then, when I attempt to connect as -U freecodecamp, I get error "psql: error: FATAL: Peer authentication failed for user “freecodecamp”. Instead, I had to connect as -U postgres

Any ideas on why this is happening?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Build a Number Guessing Game - Build a Number Guessing Game

Just an additional note: I also had database problems with the prior “Build a Periodic Table Database” project. I ended up doing that project thru the Codespaces Setup just to get thru it. In the project, I did not search for the commands to start Postgresql or to logon as -U postgres.