Connect a database
Connect a warehouse or operational database so Apps can answer from live tables.
When to use this
- Your metrics live in PostgreSQL, BigQuery, SQL Server, or similar
- You finished platform storage and need the first (or next) structured source
You need Manage Data Sources.
Shared steps
- Open Configuration → Data Sources → Add data source.
- Under Databases, pick the engine.
- Fill Connection, then Name (and optional description) under Details.
- Test connection. When it succeeds, Add source.
- Wait until discovery finishes, then enrich in Schema and attach the source to an App.
Turn on Use SSL / TLS for production databases unless your network standard says otherwise.

Engines and fields
| Engine | Default port | Connection fields |
|---|---|---|
| PostgreSQL | 5432 | Host, Port, Database, Username, Password, SSL, optional Schema (often public) |
| MySQL | 3306 | Host, Port, Database, Username, Password, SSL |
| MariaDB | 3306 | Same as MySQL |
| SingleStore | 3306 | Same as MySQL |
| SQL Server | 1433 | Host, Port, Database, Username, Password, SSL, optional Schema (often dbo) |
| CockroachDB | 26257 | Same pattern as PostgreSQL (optional Schema) |
| ClickHouse | 8123 | Host, Port, Database, Username, Password, SSL |
| BigQuery | — | Project ID only on the add form (no host/user/SSL there) |
| MongoDB | 27017 | Host, Port, Database, Username, Password, SSL, plus MongoDB options below |
After connect, you can limit which schemas, databases, or datasets the source exposes in the source detail view.
BigQuery
Enter the Project ID, name the source, test, and add. Select accessible Datasets afterward in the source detail. Worked example: Project ID contoso-analytics, name Finance BigQuery, then include only the finance and shared datasets for the Finance App.
MongoDB
Use host credentials, or enable Use connection string instead and paste a URI (for example an Atlas mongodb+srv://… string). Optional Auth database. Worked example: connection string to the crm database, name CRM Mongo, SSL on.
If the test fails
Check host reachability from Insplora, credentials, database name, and firewall rules. For BigQuery, confirm the project ID. For MongoDB URI mode, confirm the full connection string.