Skip to main content

DBeaver

DBeaver is a cross-platform database tool for developers, database administrators, analysts, and anyone who works with data.

Apache Doris accepts queries through the MySQL protocol. DBeaver 26.1.1 and later include an Apache Doris data source that you can use to query internal and external catalogs.

If the Select your database window does not list Apache Doris, use the MySQL driver instead. See Connect with the MySQL driver.

Use cases

  • Browse Apache Doris catalogs, databases, tables, views, and other metadata.
  • Run queries and analyze data in the SQL editor.
  • Manage internal and external catalogs in one tool.
  • Inspect sessions, system variables, user privileges, and other runtime information.

Prerequisites

  • Install DBeaver 26.1.1 or later from https://dbeaver.com.
  • You can reach the Apache Doris cluster and have the FE host address, MySQL protocol port, username, and password.
  • Use Doris 2.1.0 or later to connect to an external catalog with the catalog.db format.

Connect DBeaver to Doris

Version requirement

DBeaver 26.1.1 or later is required.

Step 1: Create a database connection

Start DBeaver.

Click the plus (+) icon in the upper-left corner, or select Database > New Database Connection from the menu bar. DBeaver opens the Connect to a database window.

Create a database connection

Step 2: Select the Apache Doris driver

In the Select your database window, search for or select Apache Doris, then click Next.

Select the Apache Doris driver

Step 3: Configure the Doris connection

On the Main tab of the Apache Doris connection settings window, enter the following values:

FieldDescriptionExample
HostFE host name or IP address. If you use an SSH tunnel, enter the local forwarding address.127.0.0.1
PortFE MySQL protocol port. If you use an SSH tunnel, enter the local forwarding port.9030 or 19030
Database/SchemaOptional. The target database. To connect directly to an external catalog, use the catalog.db format.example_db or hive.example_db
UsernameUsername for the Doris cluster.admin
PasswordPassword for the Doris cluster.-

The Database/Schema value determines which catalog and database DBeaver opens:

  • Leave it blank to browse catalogs and databases in the Database Navigator after connecting.
  • Enter a database name to open that database in the internal catalog.
  • Enter catalog.db to open a database in the specified external catalog. DBeaver displays the tables from that catalog and database.
note

The catalog.db format requires Doris 2.1.0 or later.

Connect to the internal catalog:

Connect to the internal catalog

Connect to an external catalog:

Connect to an external catalog

To use DBeaver's built-in SSH support, click SSH, Proxy in the upper-right corner and configure the tunnel. If you already created local port forwarding, enter the local address and port in Host and Port.

Step 4: Test and save the connection

Click Test Connection in the lower-left corner.

When DBeaver reports a successful connection, click OK.

Click Finish to save the connection.

Test the Apache Doris driver connection

Step 5: Browse Doris objects

The new data source appears in the Database Navigator. Expand it to browse Doris catalogs, databases, tables, and views.

Browse Doris objects

Configure driver properties

The Apache Doris driver uses MySQL Connector/J to connect to the FE MySQL protocol port. The default port is 9030, and the default user is root. The JDBC URL template is:

jdbc:mysql://{host}[:{port}]/[{database}]

The driver class is:

com.mysql.cj.jdbc.Driver

By default, the driver sets:

connectTimeout=20000
rewriteBatchedStatements=true
useSSL=false
enabledTLSProtocols=TLSv1.2,TLSv1.3

Configure Apache Doris driver properties

useSSL=false disables TLS/SSL by default. If the FE MySQL protocol port has TLS enabled and the certificate chain is configured correctly, set the MySQL Connector/J SSL properties under Driver properties. For example:

useSSL=true
sslMode=REQUIRED

To verify the certificate authority, configure a Java truststore:

sslMode=VERIFY_CA
trustCertificateKeyStoreUrl=file:/path/to/doris-truststore.jks
trustCertificateKeyStorePassword=<password>

To also verify the server host name, use:

sslMode=VERIFY_IDENTITY

With VERIFY_IDENTITY, the Host value in DBeaver must match the certificate's SAN or CN.

Connect with the MySQL driver

If the Select your database window does not list Apache Doris, connect with the MySQL driver.

Step 1: Create a database connection

Start DBeaver.

Click the plus (+) icon in the upper-left corner, or select Database > New Database Connection from the menu bar. DBeaver opens the Connect to a database window.

Create a MySQL database connection

Step 2: Select the MySQL driver

In the Select your database window, select MySQL.

Step 3: Configure the Doris connection

On the Main tab of the Connection Settings window, enter the following values:

FieldDescriptionExample
Server HostFE host name or IP address.127.0.0.1
PortFE MySQL protocol port.9030
DatabaseTarget database. To connect directly to an external catalog, use the catalog.db format.example_db or hive.example_db
UsernameUsername for the Doris cluster.admin
PasswordPassword for the Doris cluster.-

The Database value determines the default catalog:

  • Enter a database name to open that database in the internal catalog.
  • Enter catalog.db to open a database in the specified external catalog. DBeaver displays the tables from that catalog and database.

Create separate Doris data sources if you need direct access to several catalogs.

note

The catalog.db format requires Doris 2.1.0 or later.

Connect to the internal catalog:

Connect to the internal catalog with the MySQL driver

Connect to an external catalog:

Connect to an external catalog with the MySQL driver

Step 4: Test and save the connection

Click Test Connection in the lower-left corner.

When DBeaver reports a successful connection, click OK.

Test the MySQL driver connection

Click Finish to save the connection.

Step 5: Manage the database

The new data source appears in the Database Navigator. Use it to connect to and manage the database.

Manage the database with the MySQL driver

Driver selection and feature support

Choose a driver

Both the Apache Doris driver and the MySQL driver connect to Doris through the FE MySQL protocol port. They differ mainly in how DBeaver models metadata, organizes objects in the navigator, and exposes administration features.

Use the following guidelines to select a driver:

Use caseRecommended driver
Connect to Doris, run SQL, and browse databases and tablesApache Doris driver
Browse the internal catalog and multiple external catalogs in one connectionApache Doris driver
The current DBeaver version does not provide an Apache Doris data sourceMySQL driver
View Users, Session Manager, and System InfoMySQL driver

If you only work with the internal catalog, either driver can connect to Doris and execute SQL. However, the Apache Doris driver is recommended.

Feature comparison

FeatureApache Doris driverMySQL driver
Connect to Doris and execute SQLSupportedSupported
Browse the internal catalogSupportedSupported
Browse multiple catalogs in one connectionSupportedNot supported
Browse external catalogs in Database NavigatorSupportedNot supported
Use catalog.db as the default SQL contextSupportedSupported
View tables, views, columns, and DDLSupportedSupported
SQL editor and SQL consoleSupportedSupported
View data through the UISupportedSupported
Insert data through the UISupportedSupported
View Users, Session Manager, and System InfoNot supportedSupported
Tools > AnalyseNot supportedSupported
Tools > TruncateNot supportedSupported
Support scope

This table defines supported capabilities using an allowlist:

  • Only features explicitly marked as "Supported" in the table are within the scope of this document.
  • DBeaver UI operations and administration features not listed in the table are not supported.
  • When you use the MySQL driver, the presence of a MySQL feature in the DBeaver interface does not mean that Doris supports it.
  • Users, Session Manager, and System Info are read-only. You cannot use DBeaver to modify users, privileges, or sessions.
  • Support for Analyse and Truncate applies only to the DBeaver Tools menu when you use the MySQL driver. With the Apache Doris driver, run the corresponding Doris SQL statements in the SQL editor.

Important limitations

Neither driver supports the following operations:

  • Update or delete existing data through the UI.
  • Create tables through the UI.
  • Add or modify columns through the UI.
  • Create or modify indexes through the UI.
  • Create foreign keys or triggers through the UI.
  • Configure key models, partitions, buckets, replica counts, or table properties through the UI.
  • Session Status, Global Status, or Dashboard.
  • Check, Optimize, Repair, or Dump database.

Use the SQL editor to change Doris table schemas and to update or delete existing data.