Todd Matthews
10/29/2025, 5:36 PMkapa.ai
10/29/2025, 5:37 PMTodd Matthews
10/29/2025, 5:39 PMkapa.ai
10/29/2025, 5:39 PMtemporal and temporal_visibility. You must create these manually in your external Postgres instance and grant all privileges on them to the Airbyte user. For example: create database temporal; grant all privileges on database temporal to airbyte; create database temporal_visibility; grant all privileges on database temporal_visibility to airbyte; [Forum: "Unable to create SQL database."](https://discuss.airbyte.io/t/1544) 2. Configure Temporal to use your provided databases: In your Airbyte Helm deployment, you can set environment variables for the Temporal pod to specify the database names and to skip database creation. For example, in your `values.yaml`: yaml temporal: extraEnv: - name: DBNAME value: "temporal" - name: VISIBILITY_DBNAME value: "temporal_visibility" - name: SKIP_DB_CREATE value: "true" This tells Temporal to use the databases you created and not attempt to create them itself. This is especially important if your database user does not have permission to create new databases, which is common in production environments [GitHub Issue #43328](https://github.com/airbytehq/airbyte/issues/43328), [GitHub Issue #11157](https://github.com/airbytehq/airbyte/issues/11157). 3. Grant the correct permissions: Ensure the Airbyte user has GRANT ALL privileges on both temporal and temporal_visibility databases, but does not need CREATEDB permission if you use the SKIP_DB_CREATE flag. Note: If you do not set SKIP_DB_CREATE=true, Temporal will attempt to create the databases itself, which will fail if the user lacks the necessary permissions. Also, the exact environment variable names and configuration may depend on your Airbyte and Temporal versions, but the above is the standard approach as discussed in the community and GitHub issues. If you encounter issues with schema setup, you may also need to ensure that the schema is initialized, or set SKIP_SCHEMA_SETUP as appropriate for your version, but the main step is to pre-create the databases and set the environment variables as shown above. If you need to use custom database names, set the DBNAME and VISIBILITY_DBNAME environment variables to match your custom names. Summary: - Pre-create temporal and temporal_visibility databases. - Grant all privileges to the Airbyte user. - Set DBNAME, VISIBILITY_DBNAME, and SKIP_DB_CREATE=true in the Temporal pod configuration. This approach is confirmed by multiple users and official responses in the Airbyte community and GitHub issues [Forum: "Unable to create SQL database."](https://discuss.airbyte.io/t/1544), [GitHub Issue #43328](https://github.com/airbytehq/airbyte/issues/43328), [GitHub Issue #11157](https://github.com/airbytehq/airbyte/issues/11157).