Skip to main content

3.9.0 configuration

Show Helm Chart values

Connect to an external database

You can use PostgreSQL, MySQL, or TiDB as an external database. Below is a generic example of external database settings in Helm chart values:
Note Before starting Dify, you must create the required databases manually.

PostgreSQL

MySQL / TiDB

Configuration reference

Default ports

Configuration examples

External PostgreSQL

External MySQL

External TiDB

3.9.1 configuration

View Helm Chart default values


Connect to an external database

You can use PostgreSQL, MySQL, or TiDB as an external database. Below is a generic configuration example for the external database in the updated Helm chart:

⚠️ Important

Before starting Dify, create the required databases manually:

Database initialization

PostgreSQL


MySQL / TiDB


Configuration reference


Per-database credentials behavior

Precedence:
  • If a database has its own credentials configured → use those credentials
  • If empty → fall back to global user/password

Default ports


Configuration examples


External PostgreSQL


External MySQL


External TiDB