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

  1. Open Configuration → Data Sources → Add data source.
  2. Under Databases, pick the engine.
  3. Fill Connection, then Name (and optional description) under Details.
  4. Test connection. When it succeeds, Add source.
  5. 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.

Connect Database

Engines and fields

EngineDefault portConnection fields
PostgreSQL5432Host, Port, Database, Username, Password, SSL, optional Schema (often public)
MySQL3306Host, Port, Database, Username, Password, SSL
MariaDB3306Same as MySQL
SingleStore3306Same as MySQL
SQL Server1433Host, Port, Database, Username, Password, SSL, optional Schema (often dbo)
CockroachDB26257Same pattern as PostgreSQL (optional Schema)
ClickHouse8123Host, Port, Database, Username, Password, SSL
BigQuery—Project ID only on the add form (no host/user/SSL there)
MongoDB27017Host, 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.

Related pages