Database Connections

ClickHouse connection setup

ClickHouse connector is available in AI Data Analyst conversational notebooks. Click DB Connector in the prompt box, choose ClickHouse, configure connection details, test the connection, and save.

Required fields

  • host
  • port
  • database
  • user
  • password
  • Use HTTPS toggle

Schema is optional. MLJAR Studio uses ClickHouse over HTTP/HTTPS via clickhouse-connect. Default ports are 8123 for HTTP and 8443 for HTTPS.

Connection flow

  1. Open AI Data Analyst notebook.
  2. Click DB Connector.
  3. Select ClickHouse and fill the required fields.
  4. Choose whether the connection should use HTTP or HTTPS.
  5. Click Test connection.
  6. If clickhouse-connect is missing, MLJAR Studio asks to install it and installs it.
  7. When test succeeds, click Save connection.
  8. MLJAR Studio scans available tables and prepares LLM context.
  9. Review scanned tables and choose which should be visible to the LLM.
  10. Click final Save.

SQL block in conversational notebook

SQL queries are shown in a compact block by default. Users can expand the block to inspect full SQL text.

Collapsed SQL code block in MLJAR Studio conversational notebook

Expanded SQL block view:

Expanded SQL code block in MLJAR Studio conversational notebook

MLJAR Studio can execute read-only SQL blocks, materialize outputs into notebook variables, and continue analysis in Python for visualizations and machine learning workflows.

Troubleshooting

  • Connection refused: verify host, port, network access, and whether ClickHouse HTTP or HTTPS endpoint is exposed.
  • Authentication failed: check username/password and database-level permissions.
  • HTTPS issues: confirm the Use HTTPS toggle matches the server configuration and port.
  • Schema or tables not visible: verify the target database/schema and table visibility selection in the connector save flow.

Related docs

See the Database Connections overview and AI Data Analyst for prompt-driven analysis on top of SQL outputs.

« Previous
Snowflake
Next »
Supabase