OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.3.0

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.3.0
    iconOceanBase Database
    SQL - V 4.3.0
    SQL
    KV
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Connect to OceanBase Database by using DBeaver

    Last Updated:2024-05-09 13:12:23  Updated
    share
    What is on this page
    Prerequisites
    Procedure
    More information

    folded

    share

    DBeaver is a universal database client. It connects to a database through the Java Database Connectivity (JDBC) driver provided by this database. It supports normal relational databases, non-relational databases, and distributed databases.

    You can connect to a MySQL tenant of OceanBase Database by using the OceanBase or MySQL driver that comes with DBeaver. This topic describes how to connect to a MySQL tenant of OceanBase Database by using the OceanBase driver of DBeaver.

    Prerequisites

    • You have downloaded and installed DBeaver. You can download the DBeaver installation package for your operating system from the DBeaver Community website.

    • The IP address of the OBServer node to be connected has access to the server where DBeaver is installed.

    • You have installed OceanBase Database and created a MySQL tenant.

    Procedure

    Notice

    The GUI of DBeaver varies based on the versions. This topic describes how to connect to OceanBase Database by using DBeaver V22.0.5. For more information about the operations in other versions, see the DBeaver product documentation of the corresponding versions.

    1. (Optional) Replace the driver file.

      The default driver file for the OceanBase driver of DBeaver is mysql-connector-java-5.1.44. This topic takes mysql-connector-java-5.1.47 as an example. You can replace the driver file based on the following steps.

      1. Go to the MySQL Product Archives page at the official website of MySQL, choose the 5.1.47 version, and download the corresponding driver file.

      2. Choose Database > Driver Manager, search for OceanBase, select the OceanBase driver, and then click Edit to go to the driver editing page.

      3. Click the Libraries tab, select the driver file of the OceanBase driver, and then click Delete.

      4. Click Add File to add the downloaded driver file to the library and then click OK.

    2. Choose Database > New Database Connection to go to the Select your Database page. You can also click the Connector icon under File to go to the Select your database page.

    3. On the Select your database page, select OceanBase and click Next. On the Connection settings page, specify the information about the database to be connected and click Test Connection.

      Notice

      You can connect to OceanBase Database by using an IP address or an OceanBase Database Proxy (ODP). When you use an IP address, enter the port number specified by the mysql_port parameter. The default port number is 2881. When you use an ODP, enter the port number specified by the proxy_port parameter. The default port number is 2883.

    4. If Connected is displayed in the Test Connection pop-up window, the database can be connected. Click OK and then click Finish.

    1. Double-click the database name on the Database Navigator tab. If the database instances appear under the database, you have connected to OceanBase Database.

    More information

    For any problems encountered when you connect to OceanBase Database by using DBeaver, see related information in DBeaver Documentation.

    Previous topic

    Connect to OceanBase Database by using ODC
    Last

    Next topic

    Connect to OceanBase Database by using Navicat
    Next
    What is on this page
    Prerequisites
    Procedure
    More information