Moving Mirth Connect configuration from one database to another - rbeckman-nextgen/test-mc GitHub Wiki
Created by Jimi Sanchez, last modified on May 06, 2015
Mirth Connect ships by default using the Apache Derby database. You may find yourself in a situation where you wish to move the Mirth Connect database to MySQL / PostgreSQL / Oracle / SQL Server, but you do not want to lose your configuration settings. This page will give you a step-by-step guide to backing up your existing Mirth Connect database, changing the database configuration entry in Mirth Connect, as well as re-importing your configuration after.
- Log into your existing Mirth Connect Administrator
- Click Settings on the left hand navigation menu under the Mirth Connect heading.
- Click the Backup Config link under the Server Tasks heading.
- Specify a location to save the backup XML file and press Save.
- Locate your mirth.properties configuration file and open it in your favorite text editor.
- Modify the existing database configuration entry, replacing the
existing value with one of the allowed values (derby, mysql, oracle,
postgres, sqlserver)
- Example: database =
mysql
- Example: database =
mysql
-
Modify the database.url
configuration entry, replacing the existing value with the jdbc
protocol address of your server (Depending on your database
environment, you may need to create the database first)
- Example: database.url = jdbc:mysql://localhost:3306/mirthdb
- Modify the database.username and database.password configuration
entries, specifying the credentials needed to connect to your target
database.
- Example: database.username = jimi
- Example: database.password = MirthIsCool
- Save the file
- Restart Mirth Connect server
- If everything is successful, Mirth Connect should restart and be pointed to your new database. If not, review the error logs and correct any issues.
- Reconnect to the Mirth Connect Administrator
- Login with the default credentials of admin / admin
- Create a new user and fill out the new user dialog form and save the user.
- Click on the Settings option under the Mirth Connect navigation heading.
- Click on the Restore Config option under the Server Tasks navigation heading.
- Browse to the file that you exported earlier and click Open.
- If everything is successful, all of your configuration settings, alerts, and channels should be imported
Icon
Document generated by Confluence on Nov 11, 2019 08:40