Build a Database of Video Game Characters - Build a Database of Video Game Characters

Tell us what’s happening:

Terminal says I’m connected to “mario_database” but lesson doesn’t pass responding with “You should be connected to “mario_database”.

Challenge: “Connect to your newly named database so you can start adding your characters.”.

Terminal output:

postgres=# \c mario_database
You are now connected to database “mario_database” as user “postgres”.
mario_database=# \c second_database
You are now connected to database “second_database” as user “postgres”.
second_database=# \c mario_database
You are now connected to database “mario_database” as user “postgres”.
mario_database=# SELECT current_database();
mario_database=#
±-----------------+
| current_database |
±-----------------+
| mario_database |
±-----------------+
(1 row)

mario_database=#

Lesson response: "You should be connected to “mario_database”.

I’ve tried 2 different codespaces and now local build, all with same issue on same challenge.

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

Challenge Information:

Build a Database of Video Game Characters - Build a Database of Video Game Characters

try to close the terminal, use the reset button, wait a moment, then open a new terminal and try again

Thank you for your response and apologies for my late response; I ran into another issue with “test runner failed” but finally resolved.

Before the “test runner failed” issue I did try your suggestion along with several other troubleshooting suggestions like starting a new codespace and moving to a local setup; all of which still resulted in being stuck on the same challenge (“connect to your newly created mario_database”). I just now passed that challenge after deleting and re-cloning the rdb-alpha repo and deleting a few files on my side that were keeping me from being able to start a fresh tutorial. This was the fix that resolved the “test runner failed” issue and I assume (but don’t understand why) also resolved the original issue of being stuck on this challenge.

Hopefully that info is helpful for others having these issues.

Thanks again

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