The Database Connection screen allows you to customize your database connection settings and backup schedule.
When you install and run Web Help Desk for the first time, the application automatically selects the embedded PostgreSQL database and will not prompt you for a database connection or license key. If you decide to use an external database, update your database connection settings in this screen. When you are finished, click Save and restart Web Help Desk to enable your new settings.
- In the toolbar, click Setup > General > Database.
Click the drop-down menu and select the database for your Web Help Desk installation.
If you select PostgreSQL as your primary database, select the Use Embedded Database checkbox to use the embedded PostgreSQL database included with Web Help Desk.
When you deselect Use Embedded Database, the Database field displays.
In the Host field, enter the IP address or DNS name of the server hosting the Web Help Desk database.
In the Port field, enter the port number for the database connection.
The default ports include:
- 3306 (MySQL)
- 1433 (Microsoft SQL Server)
- 5432 (PostgreSQL)
(Non-embedded database only) Enter the name of your Web Help Desk database.
Enter the user name and password for your Web Help Desk database connection.
Select the days of the week and time of day when Web Help Desk will automatically backup the database. If you do not select any days of the week, Web Help Desk will not create a backup.
If you are using the embedded PostgreSQL database, backups are written by default to the following directory:
(Non-embedded database only) Configure a path to the executable file containing the backup command (such as .bat, .sh, and so on) using a JVM argument. This file executes based on the backup schedule.Changes to this setting are applied to your existing database. If you select a new database, restart Web Help Desk to enable changes to the new database.
Use the following JVM argument:
This command executes as a child process with the same user permissions displayed in the Operating System field at Setup > General > System Information. Web Help Desk does not wait for the process to complete.
See JVM arguments for details about creating JVM arguments in Web Help Desk.
(Embedded database only) Select the total number of backups to store in your database backup file.
Web Help Desk uses first-in, first-out database storage logic. For example, if you choose to save five backup files and in time save a sixth backup file, the first backup in the series will be deleted.
Click Backup Now to back up your new Web Help Desk database file to your backup folder.
Backup command returned exit code 1error displays, see this KB article for details.
- Click Save.
Click Restart Web Help Desk to restart the application and the Apache Tomcat web server. This process enables your new database connection settings.