Skip to main content

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