# Setting up dbt for Supabase (Postgres database)

**URL:** <https://discourse.getdbt.com/t/setting-up-dbt-for-supabase-postgres-database/14491>\
**Category:** Help\
**Tags:** dbt-cloud, postgres\
**Created:** [July 24, 2024, 1:29pm UTC](https://discourse.getdbt.com/t/setting-up-dbt-for-supabase-postgres-database/14491 "2024-07-24T13:29:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anna](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@anna](https://discourse.getdbt.com/u/anna)\
**Post date:** [July 24, 2024, 1:29pm UTC](https://discourse.getdbt.com/t/setting-up-dbt-for-supabase-postgres-database/14491/1 "2024-07-24T13:29:06Z")

</div>

## The problem I’m having

I am trying to set up dbt for the Supabase (Postgres database). I am confused with the Development credentials section and I am not sure what are the Username and Password fields. Should I be the one to come up with those for myself, or should I take this from the database which I am trying to connect?

## The context of why I’m trying to do this

I am trying to set up dbt for my database.

## What I’ve already tried

I’ve tried to come up with my own username and password, and to use the database password and username, but both didn’t work. I just don’t understand what I need to put in those fields.

 ![Screenshot 2024-07-24 142519](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/2X/9/9a90b44df2e3c56bef88c9fdda54560df2c9278e.png)

## Some example code or error messages

This is the error message that I get:

```auto
1 check failed:
2 dbt was unable to connect to the specified database.
3 The database returned the following error:
4
5
> Database Error
6 timeout expired
7
8
9 Check your database credentials and try again. For more information, visit:
10 https://docs.getdbt.com/docs/configure-your-profile

```

---

<div class="post-metadata">

**Author:** ![giannettig](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/giannettig/32/5841_2.png) [@giannettig](https://discourse.getdbt.com/u/giannettig)\
**Post date:** [July 12, 2025, 8:09pm UTC](https://discourse.getdbt.com/t/setting-up-dbt-for-supabase-postgres-database/14491/2 "2025-07-12T20:09:22Z")

</div>

any luck with this? did anything help?
