<@U04S8PLJWMT> the following three databases were ...
# ask-ai
k
@kapa.ai the following three databases were created by airbyte airbyte,airbyte_temporal_dev,airbyte_temporal_visibility_dev but as per your answer - airbyte - temporal - temporal_visibility these are the three
k
Based on the official documentation and community answers, Airbyte expects the following three databases to exist in your Postgres instance when using an external database setup: - airbyte - temporal - temporal_visibility These are the standard database names referenced in both the documentation and troubleshooting threads. If you have databases named
airbyte_temporal_dev
and
airbyte_temporal_visibility_dev
, these are not the default names expected by Airbyte and may require additional configuration to work properly. If you want to use custom database names (like
airbyte_temporal_dev
), you must ensure that your Airbyte and Temporal configuration explicitly points to these custom names. Otherwise, Airbyte will look for the default
temporal
and
temporal_visibility
databases and may fail to start if they are missing. The recommended approach is to create the databases with the default names unless you have a specific reason and have configured your deployment accordingly. Here is the standard setup:
Copy code
sql CREATE DATABASE airbyte; CREATE DATABASE temporal; CREATE DATABASE temporal_visibility;  GRANT ALL PRIVILEGES ON DATABASE airbyte TO <airbyte_user>; GRANT ALL PRIVILEGES ON DATABASE temporal TO <airbyte_user>; GRANT ALL PRIVILEGES ON DATABASE temporal_visibility TO <airbyte_user>;
This matches the solution provided in the official support answer and user experiences in the community forums [Forum: Unable to create SQL database](https://discuss.airbyte.io/t/1544) and [Github Issue: External Postgres Database Setup Issues](https://github.com/airbytehq/airbyte/issues/49304). If you use different names, you must update your configuration (e.g., Helm values or environment variables) to match those names, otherwise Airbyte will not find the required databases.
k
@kapa.ai Can you provide which configurations to change for changing database name
k
A message from kapa.ai
To change the database names used by Airbyte (for example, for the main Airbyte database or the Temporal databases), you need to update your Helm chart’s
values.yaml
file. The relevant configuration keys are under the
global.database
section for the main Airbyte database, and you can set environment variables for the Temporal databases. ### Main Airbyte Database In your
values.yaml
, set the database name under
global.database
. For Helm chart V2, the key is
name
(previously
database
in V1):
Copy code
yaml global:   database:     name: "your_custom_airbyte_db_name"
Or, if you are using secrets:
Copy code
yaml global:   database:     secretName: "airbyte-config-secrets"     # databaseSecretKey: "your_custom_airbyte_db_name"
Reference: [Configuring the Airbyte Database](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#configuring-the-airbyte-database) ### Temporal Databases For Temporal, you need to set environment variables in the
temporal.extraEnv
section of your
values.yaml
file:
Copy code
yaml temporal:   extraEnv:     - name: DBNAME       value: "your_custom_temporal_db"     - name: VISIBILITY_DBNAME       value: "your_custom_temporal_visibility_db"     - name: SKIP_DB_CREATE       value: "true"  # If you have already created the databases
Reference: [Github Issue: Helm Chart - make temporal and temporal_visibility databases configurable](https://github.com/airbytehq/airbyte/issues/11157) Note: - If you use custom names, make sure the databases exist and the Airbyte user has the necessary privileges. - The default names are
airbyte
,
temporal
, and
temporal_visibility
. If you change them, you must update all relevant configuration sections as shown above. If you need to set the user, password, or host, those are also under
global.database
or can be referenced via Kubernetes secrets as described in the documentation. If you need more details for your specific Helm chart version, please specify the version, as the keys may differ slightly between V1 and V2.