Connect a PostgreSQL database
Test a read-only PostgreSQL connection and save it for use with virtual tables.
Ask the person who manages the database for a dedicated read-only account and the SSL settings for that connection. You also need permission to manage PostgreSQL connections in your Mainbase workspace. If the connector is missing, check Plugins.
Test and save the connection
- Open Settings → Workspace → PostgreSQL and select Add Connection.
- Enter Host, Port, and Database Name, then the Username and Password for the read-only account. Use Default Schema if the database administrator specified one.
- Set SSL Mode to match the database’s connection policy. If it requires server certificate verification, follow PostgreSQL server certificate verification to check which certificates the setup supports.
- Select Next to run the connection test. When the test succeeds, select Next, enter a name that identifies the database, and select Create Integration.
- Confirm the new connection appears in the PostgreSQL connection list. Then create a virtual table from a table or view.
If the test fails, check the database address, port, and SSL settings with the database administrator. Ask them to confirm that Mainbase can reach the database and that the account can sign in. If the test passes but expected tables are missing, have them check what the read-only account can see.
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?