Connect PostgreSQL
Connect a PostgreSQL database (version 13 or newer) to one environment of your app. The connection is tested and inspected read-only before any change is proposed. This feature is in beta .
Beta — ready to use, but some details may still change.
Connect a PostgreSQL database (version 13 or newer) to one environment of your app. The connection is tested and inspected read-only before any change is proposed. This feature is in beta.
Before you start
- A database reachable from MyAppBuilder on its PostgreSQL port, usually 5432.
- SSL enabled on the server. Hosted providers enable it by default.
- Ideally three database users: a read-only user for inspection, one for migrations and one for the running app. See Credentials and permissions.
Connect
- Open Data → Data sources and choose Connect database.
- Choose PostgreSQL, then the environment: Development, Staging or Production. Each environment has its own connection.
- Fill in host, port, database name, user and password. There is no connection-string field: each value has its own input.
- Choose what the credentials are for. Start with Inspection (read-only).
- Select Test connection. A successful test shows the provider, the server version, the database name and whether the connection is encrypted, followed by No changes were made.
- Select Save. The password is encrypted on the server and never sent back to the browser; the password field is cleared.
Use Show setup instructions in the wizard for the SQL that creates the three users with only the permissions they need.
SSL
Keep SSL required for anything outside your own machine. If the test fails with a certificate error, check that the server presents a valid certificate for the host name you entered.
Unsupported versions
If the server is older than the minimum supported version, the test says which version was found and which is required. Upgrade the server, or connect a newer replica.
Next
After saving, the wizard inspects your structure and asks how the app should use your existing data. See Importing existing data and Migrations.