Skip to main content

Connecting External Databases

Datadata supports connecting four types of external databases: MySQL, Postgres, ClickHouse, and DuckDB.

Steps

  1. Click Datasources in the Studio sidebar
  2. Click New DatasourceConnect Datasource
  3. Select database type
  4. Fill in connection info
  5. Click Test Connection to verify
  6. Click Create

MySQL Connection Config

FieldDescriptionDefault
NameUnique identifier for the datasource, 3-32 characters
Display NameDisplay name for the datasource
HostDatabase host address
PortDatabase port3306
DatabaseDatabase name
UsernameConnection username
PasswordConnection password
CharsetConnection charsetutf8mb4

Postgres Connection Config

FieldDescription
NameUnique identifier
Display NameDisplay name
HostDatabase host address
PortDatabase port (default 5432)
DatabaseDatabase name
UsernameConnection username
PasswordConnection password

ClickHouse Connection Config

FieldDescription
NameUnique identifier
Display NameDisplay name
HostDatabase host address
PortDatabase port (default 8123)
DatabaseDatabase name
UsernameConnection username
PasswordConnection password
SecureEnable TLS/SSL

DuckDB Connection Config

FieldDescription
NameUnique identifier
Display NameDisplay name
HostDuckDB file path or in-memory
Port

Testing Connection

After filling in the configuration, click Test Connection to verify it works. You can only create the datasource after a successful test.

After Connecting

Once created, the datasource will appear in the query editor's datasource panel. You can:

  • Bind it to queries
  • View table structure and column info
  • Write SQL to query data

If the datasource's table schema hasn't loaded, you can manually trigger a schema scan.