# Configuring PostgreSQL Locally for Auth0 Custom DB

**URL:** <https://community.auth0.com/t/configuring-postgresql-locally-for-auth0-custom-db/83605>\
**Category:** Get Help\
**Tags:** database-connections, custom-database\
**Created:** [May 17, 2022, 3:03pm UTC](https://community.auth0.com/t/configuring-postgresql-locally-for-auth0-custom-db/83605 "2022-05-17T15:03:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wisenickel5](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wisenickel5/32/37076_2.png) [@wisenickel5](https://community.auth0.com/u/wisenickel5)\
**Post date:** [May 17, 2022, 3:03pm UTC](https://community.auth0.com/t/configuring-postgresql-locally-for-auth0-custom-db/83605/1 "2022-05-17T15:03:39Z")

</div>

Greetings, I have been reading through [this article](https://auth0.com/blog/amp/configuring-postgresql-as-auth0-custom-database/) that shows how someone can start up a PostgreSQL instance and use it as a custom DB with Auth0.

Is it possible to use a local instance of PostgreSQL for a Custom DB connection to Auth0? If it is possible, what problems may I run into?

Thanks in advance for anyone who can help!

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [May 17, 2022, 11:45pm UTC](https://community.auth0.com/t/configuring-postgresql-locally-for-auth0-custom-db/83605/3 "2022-05-17T23:45:31Z")

</div>

@wisenickel5 ,

Thank you for posting this topic on the Auth0 Community!

As mentioned in [this](https://auth0.com/blog/amp/configuring-postgresql-as-auth0-custom-database/?_ga=2.253012041.1948976727.1652717012-2091091960.1648740758&_gac=1.113396085.1650908320.CjwKCAjwjZmTBhB4EiwAynRmDwgYd8Eeh_puSu5dTAtryE4tugguDFU5X2pJVjktAGCNwBOy9krb0RoCy4gQAvD_BwE) article,

`"You cannot use the database in your local environment. You should make your database accessible via the internet or use tools like [Database as A Service](https://www.ibm.com/cloud/learn/dbaas)"`

Therefore I believe the answer is No. I am not sure what problems you may run into if using a local instance of PostgreSQL, [this](https://www.prisma.io/dataguide/postgresql/5-ways-to-host-postgresql#installing-postgresql-on-your-local-development-computer) article talks about the pros/cons of installing PostgreSQL on your local computer. Hope it could be a good reference!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2022, 9:01am UTC](https://community.auth0.com/t/configuring-postgresql-locally-for-auth0-custom-db/83605/4 "2022-12-22T09:01:50Z")

</div>


