--- title: "Adding Database Connections" description: "To connect to an existing database or to create a new database, do the following: Switch to the Configuration page. Navigate to Salesforce > Databases. Click Add Database." canonical: "https://helpcenter.veeam.com/docs/backup_salesforce/userguide/adding_databases.html" breadcrumb: "User Guide > Configuring Veeam Backup for Salesforce > Managing Databases > Adding Database Connections" dateModified: "2026-10-16" --- # Adding Database Connections To connect to an existing database or to create a new database, do the following: 1. Switch to the **Configuration** page. 2. Navigate to **Salesforce** > **Databases**. 3. Click **Add Database**. 4. Specify the following settings in the **Add Database Connection** window: 1. In the **PostgreSQL Server Connection** section, choose whether the database will be hosted on one of the PostgreSQL servers to which Veeam Backup for Salesforce is already connected or establish connection to a new PostgreSQL server. If you chose to connect to a new server, you must configure the new connection settings: 1. In the **PostgreSQL address** field, specify the DNS name or IP address of a PostgreSQL server that will host the database. 2. In the **Port** field, choose a network port that will be used by Veeam Backup for Salesforce to connect to the PostgreSQL server. The default port number is 5432. 3. Use the **Username** and **Password** fields to provide credentials of the PostgreSQL user that will be used to access the database. The user must be assigned permissions required to create database schemas. 2. In the **Create or connect to a database** section, specify the name of an existing database and connection label that will be further used as the database name displayed in the Veeam Backup for Salesforce Web UI. If you enter the name of a database that does not exist yet, Veeam Backup for Salesforce will automatically create a new database on the specified PostgreSQL server. However, Veeam Backup for Salesforce will be able to do this only if the user that will be used to access the database is assigned the *createdb* permission required to create databases in PostgreSQL — otherwise, you will have to create an empty database on the specified server manually as described in [PostgreSQL Documentation](https://www.postgresql.org/docs/). ::: important Backed-up data of a Salesforce organization can be stored either in an empty database, or in any other database whose schema and organization ID match the schema and organization ID of the source database. ::: 3. In the **Select company** section, choose a company that manages a Salesforce organization whose backed-up data and metadata you want to store in this database. For more information on companies, see [Managing Companies](managing_companies.md). 4. Click **Add**. [![Adding Databases](images/db_add.png "Adding Databases")](images/db_add.png){.toggle scale=60}