# Custom DB not connecting from auth0

**URL:** <https://community.auth0.com/t/custom-db-not-connecting-from-auth0/95544>\
**Category:** Get Help\
**Tags:** database-connections, custom-database, auth0\
**Created:** [December 2, 2022, 9:13am UTC](https://community.auth0.com/t/custom-db-not-connecting-from-auth0/95544 "2022-12-02T09:13:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mail2ganeshks](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mail2ganeshks/32/33197_2.png) [@mail2ganeshks](https://community.auth0.com/u/mail2ganeshks)\
**Post date:** [December 2, 2022, 9:13am UTC](https://community.auth0.com/t/custom-db-not-connecting-from-auth0/95544/1 "2022-12-02T09:13:16Z")

</div>

Hi Team,

Query 1:  
I am trying to connect my local database with auth0 using custom database connection but it is not allowing me to connect it. I have even revisited the firewall changes and also I have exposed my machine using ngrok. But still auth0 custom database connection is not working. Could you please help me on this. Thanks.

Query 2:  
So when we go for pricing with auth0 and we plan to host auth0 in our private VPC and Database also lies on the same network. In that case, do we still need to do these firewall changes in our server ? Kindly clarify on the same. Thanks.

---

<div class="post-metadata">

**Author:** ![anish.subedi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anish.subedi/32/33385_2.png) [@anish.subedi](https://community.auth0.com/u/anish.subedi)\
**Post date:** [December 20, 2022, 8:42am UTC](https://community.auth0.com/t/custom-db-not-connecting-from-auth0/95544/2 "2022-12-20T08:42:05Z")

</div>

Hi,

Please make your that your database is accessible.  
Generate access token and pass it into the header and trigger management api /api/v2/user  
Install the extension real-time webtask log to view the actual issues.  
Make sure you have written the correct script within the auth0

---

<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 21, 2022, 3:43pm UTC](https://community.auth0.com/t/custom-db-not-connecting-from-auth0/95544/3 "2022-12-21T15:43:12Z")

</div>

Thanks for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 4, 2023, 3:43pm UTC](https://community.auth0.com/t/custom-db-not-connecting-from-auth0/95544/4 "2023-01-04T15:43:31Z")

</div>

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