## Supported Databases

The professional edition has been adapted for the following databases:

```shell
MySQL -- 5.7
PostgreSQL -- 13.x, 14.x
DM -- DM8
Kingbase -- V9 MySQL-compatible edition
SQL Server -- tested with 2017
Oracle -- 11c, 12c
```

## Switching Data Sources

Install the target database before changing the configuration. The source `sql` directory contains the initialization SQL for each supported datasource.

The `application-sql` configuration file contains datasource configuration examples.

<img alt="Datasource switching configuration example" src="../../../../business/v2/install/images/data-source/data-source1.png" style="border:1px solid #ccc;border-radius:6px;margin:8px 0;" loading="lazy" />

For a development or production environment, copy the configuration for the target database from `application-sql` into `application-dev` or `application-prod` to enable it.

<img alt="Environment-specific datasource configuration example" src="../../../../business/v2/install/images/data-source/data-source2.png" style="border:1px solid #ccc;border-radius:6px;margin:8px 0;" loading="lazy" />

Before switching, verify the JDBC driver, connection URL, account permissions, character set, and time zone. Keep the initialization and upgrade SQL aligned with the target database, then verify login, product management, device management, rules, alarms, and reports before launch.
