This page provides information about using Stash with an external database. Stash ships with an embedded database that it uses straight out-of-the-box, with no configuration required. This is great for evaluation purposes, but for production installations we recommend that you use one of the supported external databases. Stash supports the following external databases: Please refer to Supported platforms for the versions of external databases supported by Stash. You can configure Stash to use an external database using: On this page: 
|
|
Why would I want to use an external database?
Stash ships with an embedded database that is great for evaluation purposes, but for production installations we recommend that you make use of one of the supported external databases, for the following reasons:
- Improved protection against data loss: The Stash built-in database, which runs HSQLDB, is susceptible to data loss during system crashes. External databases are generally more resistant to data loss during a system crash. HSQLDB is not supported in production environments and should only be used for evaluation purposes.
- Performance and scalability: If you have a large number of users on your Stash instance, running the database on the same server as Stash may slow it down. When using the embedded database, the database will always be hosted and run on the same server as Stash, which will limit performance.
- Unified back-up: Use your existing DBMS tools to back up your Stash database alongside your organisation's other databases.

Using the Setup Wizard to configure Stash to use an external database
You can connect Stash to an external database when you run the Setup Wizard, immediately after starting Stash for the first time. See Installing Stash on Windows or Installing Stash on Linux and Mac for more information.
If you have been using Stash for a while using the embedded database, you can migrate to an external database, as described below.

Using the Database Migration Wizard
You can use the Database Migration Wizard to migrate Stash from the embedded database to an external database, or from an external database to another external database. You need to have created the DBMS (such as MySQL) that you wish to migrate the Stash data to before running the Migration Wizard.
To run the Database Migration Wizard:
- Log in to Stash.
- In the administration area, click Database (under 'Settings').
- Click Migrate database and follow the instructions for running the migration.
Notes about database migration