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 is highly compatible with the MySQL protocol, so you can use the MySQL driver in DBeaver to connect to Apache Doris and query data in the internal catalog and external catalog.

Use cases

  • Browse metadata such as databases, tables, and views in Apache Doris through a visual interface.
  • Use the SQL editor to run queries and analyze data.
  • Manage the internal catalog and multiple external catalogs in a single tool.
  • Monitor sessions and view runtime information such as system variables and user privileges.

Prerequisites

  • DBeaver is installed (version 24.0.0 or later is recommended). Download URL: https://dbeaver.io
  • An Apache Doris cluster is reachable, and you know the FE host address, query port, username, and password.
  • To connect to an external catalog using the catalog.db form, the Doris version must be 2.1.0 or later.

Procedure

Note

The following steps are verified on DBeaver 24.0.0.

Step 1: Create a new database connection

  1. Start DBeaver.

  2. In the upper-left corner of the window, click the plus (+) icon, or select Database > New Database Connection from the menu bar to open the Connect to a database dialog.

    Add connection 1

    Add connection 2

Step 2: Select the MySQL driver

In the Select your database window, select MySQL.

Select driver

Step 3: Configure the Doris connection

On the Main tab of the Connection Settings window, fill in the following connection information:

FieldDescriptionExample
Server HostThe FE host IP address of the Doris cluster127.0.0.1
PortThe FE query port of the Doris cluster9030
DatabaseThe target database in the Doris clusterexample_db or hive.example_db
UsernameThe username used to log in to the Doris clusteradmin
PasswordThe password used to log in to the Doris cluster-
How to use the Database field

The Database field can be used to distinguish between the internal catalog and external catalogs:

  • Database name only: by default, the data source connects to the internal catalog.
  • The format catalog.db: the data source connects to the specified catalog by default, and the databases and tables shown in DBeaver are those in that catalog.

Therefore, you can create multiple Doris data sources to manage different catalogs separately.

Note

Connecting to a Doris external catalog with the catalog.db form requires Doris version 2.1.0 or later.

Connection examples:

  • Connect to the internal catalog

    Connect to internal catalog

  • Connect to an external catalog

    Connect to external catalog

Step 4: Test and save the connection

  1. After filling in the connection information, click Test Connection in the lower-left corner to verify that the information is correct.
  2. When DBeaver displays a confirmation dialog, click OK to confirm that the configuration is correct.
  3. Click Finish in the lower-right corner to complete the connection setup.

Test connection

Step 5: Connect to and manage the database

After the database connection is established, you can see the new data source in the database connection navigator on the left, and connect to and manage it through DBeaver.

Establish connection

Feature support

DBeaver supports Apache Doris features as follows:

Fully supported

CategoryFeature
Visual viewingDatabases (Tables, Views), Users
AdministerSession Manager
System InfoSession Variables, Global Variables, Engines, Charsets, User Privileges, Plugin
OperationsSQL editor, SQL console

Basically supported

You can click and view these items without errors, but due to protocol compatibility issues, some content may not be fully displayed:

  • Dashboard
  • Users / user / properties
  • Session Status
  • Global Status

Not supported

When using DBeaver to manage Apache Doris, certain visual operations may report errors or have not been verified, for example:

  • Visually creating databases and tables
  • Schema Change
  • Visually inserting, deleting, or updating data