# Connect to PostgreSQL Database

**URL:** <https://community.mindstudio.ai/t/connect-to-postgresql-database/1604>\
**Category:** Support\
**Created:** [September 4, 2025, 5:44am UTC](https://community.mindstudio.ai/t/connect-to-postgresql-database/1604 "2025-09-04T05:44:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Phil](https://community.mindstudio.ai/u/Phil)\
**Post date:** [September 4, 2025, 5:44am UTC](https://community.mindstudio.ai/t/connect-to-postgresql-database/1604/1 "2025-09-04T05:44:42Z")

</div>

Hello, my company subscribes to MindStudio Pro. We are working on a MindStudio project where we would like to give the workflow access to a PostgreSQL database server that runs on our infrastructure. We are an I.T. company. The PostgreSQL server in question is actually a read only replica of another production PostgreSQL server. We have a DMZ proxy server that accepts requests at a domain and proxies the requests to the PostgreSQL replica. I have verified that the replica is reachable from the wider internet.

In our test MindStudio agent I have a **Query SQL Database** block. That block has the option to set the parameters needed for connecting to a database. It asks for host, port, database, user, password, etc. When I put all of the details in and press continue MindStudio pops up a red dialog that says **Access to these database systems is not permitted**.

Is it possible to connect our MindStudio agent to a PostgreSQL database that we host?

---

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://community.mindstudio.ai/u/sean)\
**Post date:** [September 4, 2025, 3:23pm UTC](https://community.mindstudio.ai/t/connect-to-postgresql-database/1604/2 "2025-09-04T15:23:30Z")

</div>

This should be fixed, can you please try again? An overzealous security policy was blocking some terms in the configuration.

---

<div class="post-metadata">

**Author:** ![Phil](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Phil](https://community.mindstudio.ai/u/Phil)\
**Post date:** [September 4, 2025, 4:55pm UTC](https://community.mindstudio.ai/t/connect-to-postgresql-database/1604/4 "2025-09-04T16:55:34Z")

</div>

You’re a legend, it works now!

Thank you!
