# How to set up External DB and integrate with passbolt

**URL:** <https://community.passbolt.com/t/how-to-set-up-external-db-and-integrate-with-passbolt/5824>\
**Category:** Uncategorized\
**Created:** [September 15, 2022, 1:42pm UTC](https://community.passbolt.com/t/how-to-set-up-external-db-and-integrate-with-passbolt/5824 "2022-09-15T13:42:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krithi](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@Krithi](https://community.passbolt.com/u/Krithi)\
**Post date:** [September 15, 2022, 1:42pm UTC](https://community.passbolt.com/t/how-to-set-up-external-db-and-integrate-with-passbolt/5824/1 "2022-09-15T13:42:17Z")

</div>

We have Passbolt installed in EC2 Server and DB installed in seperate EC2 server, How we can integrate both in this scenario?

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/garrett/32/545_2.png) [@garrett](https://community.passbolt.com/u/garrett)\
**Post date:** [September 15, 2022, 6:05pm UTC](https://community.passbolt.com/t/how-to-set-up-external-db-and-integrate-with-passbolt/5824/2 "2022-09-15T18:05:59Z")

</div>

@Krithi This [file in the Github repo](https://github.com/passbolt/passbolt_api/blob/master/config/app.default.php) is also found in your installed files and has a Datasources section with all possible parameters which are accepted.

You can try first to change the `host` parameter to the provided EC2 db url. If that doesn’t work, I believe you are going to want to build a URL and [for reference this is a CakePhp doc page](https://book.cakephp.org/4/en/orm/database-basics.html) and look for this section about DSN string:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/5/5dcfc2e99e3b5ed5a4607e94844aad173072d5a7.png)

To be clear, there’s no need to alter any source code, but the url parameter would look like the `mysql://my_app...`
