# CockroachDB connection in auth0

**URL:** <https://community.auth0.com/t/cockroachdb-connection-in-auth0/113568>\
**Category:** Get Help\
**Tags:** custom-database-connections, connections\
**Created:** [August 14, 2023, 11:21am UTC](https://community.auth0.com/t/cockroachdb-connection-in-auth0/113568 "2023-08-14T11:21:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiteshgargfbs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hiteshgargfbs/32/49066_2.png) [@hiteshgargfbs](https://community.auth0.com/u/hiteshgargfbs)\
**Post date:** [August 14, 2023, 11:21am UTC](https://community.auth0.com/t/cockroachdb-connection-in-auth0/113568/1 "2023-08-14T11:21:19Z")

</div>

I am searching around to find if auth0 supports CockroachDB connection or not, but could not find any references, if it supports CockroachDB then how to connect it?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 16, 2023, 1:27pm UTC](https://community.auth0.com/t/cockroachdb-connection-in-auth0/113568/3 "2023-08-16T13:27:28Z")

</div>

Hi @hiteshgargfbs,

Welcome to the Auth0 Community!

If I’m reading [their doc](https://www.cockroachlabs.com/docs/stable/connect-to-the-database) correctly, it looks like you can connect to CockroachDB like a normal postgres DB. You can use a [custom database and the related DB action script.](https://auth0.com/docs/authenticate/database-connections/custom-db/templates/login#postgresql)

---

<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:** [August 30, 2023, 1:27pm UTC](https://community.auth0.com/t/cockroachdb-connection-in-auth0/113568/4 "2023-08-30T13:27:51Z")

</div>

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