Database Configuration

This document provides information on connecting Confluence to an external database.

Choosing an external database

Note: Take time to choose your database wisely. The XML backup built into Confluence is not suited for migration or backup of large data sets. If you need to migrate later, you may need to use a third party database migration tool.

Below is more information on selecting and migrating to an external database:

About the embedded H2 database 

The embedded H2 database is only supported for testing and app development purposes on non-clustered (single node) Confluence Data Center installations.

To find out if you are still using the embedded database, go to Administration menu , then General Configuration. > Troubleshooting and support tools.

Database setup

To find out how to set up your database, see:

Database drivers

You must use a supported database driver. See Database JDBC Drivers for the drivers we support. 

If you attempt to use an unsupported or custom JDBC driver (or a driverClassName from an unsupported or custom driver in your JINDI datasource connection) collaborative editing will fail. 

Database connection methods

Confluence connects to your database using a JDBC URL. The Confluence Setup Wizard will establish this connection by default (this won't be shown) as this is the recommended connection method. 

If you want to use a JNDI datasource, see Configuring a datasource connection for the steps you'll need to take before you set up Confluence, as the setup wizard will only provide the option to use a datasource if it detects a datasource in your Tomcat configuration. 

Database troubleshooting

For database-related problems see Database Troubleshooting

If you need more help, check out Troubleshooting Problems and Requesting Technical Support.

Last modified on May 5, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.