Database connections
clariBI connects to PostgreSQL, MySQL (and MariaDB), Microsoft SQL Server (including Azure SQL) and Oracle Database. This page covers the form, a read-only user for each, network access and how syncing works.
Supported databases
| Database | Default port | Database field | Schema when left empty |
|---|---|---|---|
| PostgreSQL | 5432 | Database name | public |
| MySQL and MariaDB | 3306 | Database name | No schema field: in MySQL the database is the schema |
| SQL Server and Azure SQL | 1433 | Database name | The login's default schema, normally dbo |
| Oracle Database | 1521 | Service name, such as ORCLPDB1 (not a SID) | The user's own schema |
We tested the MySQL, SQL Server and Oracle connections against MariaDB 10.11, SQL Server 2022 and Oracle Database 23 Free.
SQLite is not offered. The old SQLite option could only read a file on clariBI's own server. Export SQLite tables as CSV and upload them, or move the data into one of the four databases above.
Connect a database
- Open Settings > Integrations and click Add Data Source.
- Under Databases, choose PostgreSQL, MySQL, SQL Server or Oracle.
- Fill in the form and click Test Connection.
- If the test passes, click Create Data Source. clariBI syncs the tables right away and builds a dashboard for them. You can ask questions once the first sync finishes.
| Field | Notes |
|---|---|
| Data Source Name | How the source is labeled in clariBI |
| Host | For example db.example.com. It must be reachable from the internet (see below). |
| Port (optional) | 5432, 3306, 1433 or 1521 if left empty, depending on the database |
| Database Name (Service name on Oracle) | The database to read. On Oracle, the service name of the database or pluggable database, such as ORCLPDB1. |
| Username and Password | Use a read-only user (below). The password is stored encrypted. |
| Schema (optional; Schema owner on Oracle) | Shown for PostgreSQL, SQL Server and Oracle. Defaults are in the table above. |
| Tables to sync (optional) | Comma-separated, for example orders, customers, invoices. Empty means every table in the schema that the user can read. |
Encryption
There is no SSL or encryption setting in the form.
- PostgreSQL: the driver tries an encrypted connection first and uses it when the server offers one.
- SQL Server: the login is always encrypted. The whole session is encrypted when the server forces encryption, as Azure SQL does.
A read-only user
clariBI only runs SELECT statements, but give it a user that cannot write anyway. Replace the names and the password with your own.
PostgreSQL
CREATE USER claribi_reader WITH PASSWORD 'choose_a_strong_password';
GRANT CONNECT ON DATABASE your_database TO claribi_reader;
GRANT USAGE ON SCHEMA public TO claribi_reader;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO claribi_reader;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO claribi_reader;
MySQL and MariaDB
CREATE USER 'claribi_reader'@'%' IDENTIFIED BY 'choose_a_strong_password';
GRANT SELECT ON your_database.* TO 'claribi_reader'@'%';
SQL Server
CREATE LOGIN claribi_reader WITH PASSWORD = 'choose_a_strong_password';
USE your_database;
CREATE USER claribi_reader FOR LOGIN claribi_reader;
ALTER ROLE db_datareader ADD MEMBER claribi_reader;
On Azure SQL, run CREATE LOGIN while connected to the master database and the other statements while connected to your database (Azure SQL does not accept USE).
Oracle
CREATE USER claribi_reader IDENTIFIED BY "choose_a_strong_password";
GRANT CREATE SESSION TO claribi_reader;
GRANT SELECT ON app_owner.orders TO claribi_reader;
GRANT SELECT ON app_owner.customers TO claribi_reader;
When the tables belong to another user, as app_owner does here, enter that user in Schema owner.
To limit what clariBI sees on any database, grant SELECT on specific tables or on views that pre-filter the data.
Network access
The database must accept connections from the internet on its port. clariBI refuses private, local and internal addresses, such as 10.x, 192.168.x and 127.0.0.1, and host names that resolve to them, so a database reachable only inside a private network or VPN cannot be connected. If a firewall allows only known addresses, write to support@claribi.com for the address to allow.
A connection attempt gives up after 15 seconds, and queries run with a statement timeout, so a wrong host or a blocked port fails the test instead of hanging.
How syncing works
clariBI does not query your database each time you open a dashboard. A sync copies the selected tables into clariBI, and analyses, dashboards and reports work on that copy.
- The first sync runs as soon as you create the source.
- Each sync copies up to your plan's row cap per table (3,000 rows on Free and Trial, up to 100,000 on Enterprise).
- There is no incremental sync. Every sync reads the tables again.
- To sync again, click Sync now in the data freshness panel of the source's dashboard, or Sync Data in the source's Manage panel.
- clariBI also syncs on its own when the copy is more than a day old and a question, a dashboard refresh or a report uses the source.
For large tables, point clariBI at a view that aggregates the data (daily totals rather than every order line) so the rows it copies cover the whole period.
Supabase and Neon
Both are PostgreSQL, so the form above works with their connection details. Both are also in the MCP catalog; see MCP integrations.
The trial lasts 14 days, includes 50 AI credits and does not ask for a card. When it ends, the account moves to the Free plan and keeps its data.