# An Issue with Relational Database Course

**URL:** <https://forum.freecodecamp.org/t/an-issue-with-relational-database-course/491263>\
**Category:** General\
**Created:** [January 5, 2022, 6:42pm UTC](https://forum.freecodecamp.org/t/an-issue-with-relational-database-course/491263 "2022-01-05T18:42:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JerryTheQuad](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jerrythequad/32/215963_2.png) [@JerryTheQuad](https://forum.freecodecamp.org/u/JerryTheQuad)\
**Post date:** [January 5, 2022, 6:42pm UTC](https://forum.freecodecamp.org/t/an-issue-with-relational-database-course/491263/1 "2022-01-05T18:42:24Z")

</div>

Hi everybody,

I’m going through the Mario Database part and seem a bit stuck. I opened my VS Code, and now I’m not connected to the database. I remember there was a command to connect to it, but it was in the beginning, and now I’m a bit lost.

Can someone please provide the command ? I’m sure it will help me, I’m hoping that the database progress is still there. Thanks, have a great day)

 ![image](https://global.discourse-cdn.com/freecodecamp/original/3X/1/0/104483810bb1d8654101e5a8ecbf70c96308a646.png)

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [January 5, 2022, 7:17pm UTC](https://forum.freecodecamp.org/t/an-issue-with-relational-database-course/491263/2 "2022-01-05T19:17:59Z")

</div>

I think it’s just `\c dbname`

> **[psql](https://www.postgresql.org/docs/13/app-psql.html)**
>
> psql psql — PostgreSQL interactive terminal Synopsis psql \[option...\] \[dbname \[username\]\] Description psql is a terminal-based front-end to PostgreSQL. It …

You can also look at the commands and steps in the tutorial.json file.  
[https://raw.githubusercontent.com/freeCodeCamp/learn-relational-databases-by-building-a-mario-database/main/tutorial.json](https://raw.githubusercontent.com/freeCodeCamp/learn-relational-databases-by-building-a-mario-database/main/tutorial.json)

* * *

> [@JerryTheQuad](#):
>
> I opened my VS Code, and now I’m not connected to the database.

Not sure if you can just reconnect, you may have to start over.

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 5, 2022, 7:20pm UTC](https://forum.freecodecamp.org/t/an-issue-with-relational-database-course/491263/3 "2022-01-05T19:20:24Z")

</div>

Hi @JerryTheQuad !

Are you talking about this command?

```auto
psql --username=freecodecamp dbname=postgres

```

---

<div class="post-metadata">

**Author:** ![JerryTheQuad](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jerrythequad/32/215963_2.png) [@JerryTheQuad](https://forum.freecodecamp.org/u/JerryTheQuad)\
**Post date:** [January 5, 2022, 7:41pm UTC](https://forum.freecodecamp.org/t/an-issue-with-relational-database-course/491263/4 "2022-01-05T19:41:11Z")

</div>

Hi there,

Happy holidays and may everything be smooth for you this year. Yeah, I was asking about this command, but alas — the program is still giving me this error.  
 ![image](https://global.discourse-cdn.com/freecodecamp/original/3X/1/0/1078e4a8daac690133be8beaf8281bea9522e2cc.png)

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 5, 2022, 7:58pm UTC](https://forum.freecodecamp.org/t/an-issue-with-relational-database-course/491263/5 "2022-01-05T19:58:27Z")

</div>

It looks like it is the same issue with the user at the end of this thread.

> [@Learn Linux, PostgreSQL, Git, and Bash Scripting – right from the command line (new 300-hour freeCodeCamp Certification)](https://forum.freecodecamp.org/t/learn-linux-postgresql-git-and-bash-scripting-right-from-the-command-line-new-300-hour-freecodecamp-certification/478231/43):
>
> Hi all, I am unable to connect to the psql server for the Mario Database course. I was able to connect yesterday, but today there is an issue. Can you please help? Venkatesh I used this–\> psql --username=freecodecamp dbname=mario\_database

When I try to continue a lesson, I get the same error message.

But if I start from the beginning, then it works perfectly.

Unfortunately, that is the best answer I can give you right now.

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 5, 2022, 8:01pm UTC](https://forum.freecodecamp.org/t/an-issue-with-relational-database-course/491263/6 "2022-01-05T20:01:15Z")

</div>

Here is Tom’s repsonse to the other post.  
You can try running those commands he mentions to see if that works for you.

> [@Learn Linux, PostgreSQL, Git, and Bash Scripting – right from the command line (new 300-hour freeCodeCamp Certification)](https://forum.freecodecamp.org/t/learn-linux-postgresql-git-and-bash-scripting-right-from-the-command-line-new-300-hour-freecodecamp-certification/478231/45):
>
> Did you close the tutorial or vscode and try to reopen and continue @venkateshrnaik? Your best bet is to finish a tutorial in one session. Closing it and trying to reopen and continue can have issues sometimes. If you ls -a in the terminal there, and don’t see a few folders - you will likely need to start over, unfortunately. If you do see the folders, there’s a [series of commands](https://github.com/freeCodeCamp/learn-relational-databases-by-building-a-mario-database/blob/main/coderoad.yaml#L5) that run when you initially load a tutorial, that don’t get run when trying to continue. I will try and fix this. …

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [July 7, 2022, 8:01am UTC](https://forum.freecodecamp.org/t/an-issue-with-relational-database-course/491263/7 "2022-07-07T08:01:40Z")

</div>

Closed on July 7, 2022, 8:01am UTC

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