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.
catalog.db form, the Doris version must be 2.1.0 or later.:::info Note The following steps are verified on DBeaver 24.0.0. :::
Start DBeaver.
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.
In the Select your database window, select MySQL.
On the Main tab of the Connection Settings window, fill in the following connection information:
| Field | Description | Example |
|---|---|---|
| Server Host | The FE host IP address of the Doris cluster | 127.0.0.1 |
| Port | The FE query port of the Doris cluster | 9030 |
| Database | The target database in the Doris cluster | example_db or hive.example_db |
| Username | The username used to log in to the Doris cluster | admin |
| Password | The password used to log in to the Doris cluster | - |
:::tip How to use the Database field The Database field can be used to distinguish between the internal catalog and external catalogs:
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. :::
:::info 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 an external catalog
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.
DBeaver supports Apache Doris features as follows:
| Category | Feature |
|---|---|
| Visual viewing | Databases (Tables, Views), Users |
| Administer | Session Manager |
| System Info | Session Variables, Global Variables, Engines, Charsets, User Privileges, Plugin |
| Operations | SQL editor, SQL console |
You can click and view these items without errors, but due to protocol compatibility issues, some content may not be fully displayed:
When using DBeaver to manage Apache Doris, certain visual operations may report errors or have not been verified, for example: