---
title: Creating an external database connection
slug: how-tos/wFSr-creating-an-external-database-connection
createdAt: 2025-09-04T14:42:50.348Z
---

To create an external database connection, go to the `Configuration` tab on the bottom left. You can find the `External Databases` overview in the `Organization Setting` section.

Click the `Create database` button.

1. Enter a **unique name**
2. *Optionally enter a description*
3. Select a database type. Currently MySQL, SAP (hdb and ASA), postgres, Oracle, SQL Server and sqlite are supported
4. Timeout in milliseconds. (this is the default maximum time Factry Historian will wait for a query to complete )
5. Enter a connection string. You can use $USER and $PASSWORD if you wish to exclude this sensitive data from the connection string. If you do 2 extra field will appear below. These placeholders are replaced when creating a connection with the values filled in in the next two steps
6. Enter the username for the database connection. Make sure this is a user that only has read only permission on the database
7. Enter the password

When you’re done you can press the `Save` button, if everything is working you’ll see a success notification. If something went wrong more details are available in the error message.

:::hint{type="warning"}
Always make sure you configure a user with read only privileges to prevent possible data loss by misconfiguration.
:::
