OceanBase logo

OceanBase

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

Product Overview
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

OceanBase

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

Product Overview
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.2.0

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    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.2.0
    iconOceanBase Database
    SQL - V 4.2.0
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • 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

    Migrate data from a MySQL OceanBase database to a MySQL database using CloudCanal

    Last Updated:2025-12-05 01:58:24  Updated
    Share
    What is on this page
    Prerequisites
    Procedure
    Add data sources
    Create a task
    View the task status

    folded

    Share

    CloudCanal is a data migration and synchronization tool that helps enterprises quickly build high-quality data channels. It is available in SaaS and private deployment modes. The development team behind CloudCanal consists of seasoned professionals from big companies. With backgrounds in database kernel development, large-scale distributed systems, and cloud product development, they understand databases, distributed systems, and cloud product business and services.

    This topic describes how to use CloudCanal Community Edition v2.2.6.9 to migrate data from a MySQL OceanBase database to a MySQL database.

    Applicability

    • CloudCanal Community Edition supports migrating data from a MySQL OceanBase database to a MySQL database as of version 2.2.3.0. For more information, see here.
    • CloudCanal supports OceanBase Database V3.2.3.0 and earlier as the source database.

    Prerequisites

    1. Install and deploy CloudCanal Community Edition.
    2. Follow Install OceanBase Binlog Service to install and deploy OceanBase Binlog Service.

    Procedure

    1. Add a data source.
    2. Create a task.
    3. View the task.

    Add data sources

    1. Log in to the CloudCanal console.

    2. Go to the data source management page and click Add Data Source.

    3. On the Add Data Source page, specify the data source information.

      • Deployment Type: indicates whether the data source is a Self-managed database or an Alibaba Cloud database.

        • Alibaba Cloud: an instance of a database that you have purchased on Alibaba Cloud.
        • Self-managed database: an instance of a database that you have deployed yourself.
      • Database Type: the type of the data source.

        You can add the OceanBase and MySQL data sources as the source and target databases for synchronization respectively:

        • Select OceanBase from the self-managed database option to add the OceanBase database instance that you have deployed.

          Specify the following parameters for the OceanBase data source:

          • Network Address: the IP address for connecting to OceanBase Database, which can be direct connection or connection through ODP.
          • oblogproxy host: the IP address of OceanBase Binlog Service. If you use OceanBase Database as the source database for incremental synchronization, this parameter is required. If you use OceanBase Database as the target database, this parameter can be left empty. For more information about OceanBase Binlog Service, see OceanBase Binlog Service.
          • OceanBaseRpcPort: the port of OceanBase Rpc. The default value is 2882.
          • Authentication: the authentication mode. It can be No Password, With Password, or Username/Password. The default value is Username/Password.
          • Username: the username for connecting to OceanBase Database. In direct connection, the username format is username@tenant name; in ODP connection, the username format is username@tenant name#cluster name.
          • Password: the password corresponding to the username.
          • Description: an optional field for remarking. This field helps you identify the database when you use it, such as transaction database, user database, test database.
        • Select MySQL from the self-managed database option to add the MySQL database instance that you have deployed.

          Specify the following parameters for the MySQL data source:

          • Network Address: the IP address of the MySQL database.
          • Authentication: the authentication mode. It can be No Password, With Password, or Username/Password. The default value is Username/Password.
          • Username: the username for connecting to the MySQL database.
          • Password: the password corresponding to the username.
          • Description: an optional field for remarking. This field helps you identify the database when you use it, such as transaction database, user database, test database.
    4. View the added data sources.

    Create a task

    After the data source is added, follow these steps to migrate data in full, perform incremental synchronization, and migrate schemas.

    1. Go to the Task Management page and click Create Task.

    2. Configure the source and target databases.

      • Select Task Run Cluster. The task will be scheduled to run on a server in the cluster. After the Community Edition is deployed, a default run cluster will be provided.

      • Select the source OceanBase database and the target MySQL database, and click Test Connection.

      • Select the Databases to migrate, synchronize, or verify and configure the database mappings.

      • Click Next.

    3. Configure features.

      Select Incremental Synchronization. The system will first perform full data synchronization by querying tables, and then perform incremental data synchronization by consuming binlog.

      • The task types are described as follows:

        • Full migration: Primarily for full data migration and short-term incremental synchronization.
        • Incremental synchronization: the default task type. It includes full initialization by default. Primarily for long-term incremental synchronization.
        • Data verification: verifies the accuracy of data migration by comparing the data in the source and target databases. This feature is not supported in the Community Edition.
        • Schema migration: automatically creates corresponding databases and tables based on the selected databases and tables.
        • Data correction: automatically corrects inconsistent data in the target database to be consistent with the source database. This feature is not supported in the Community Edition.
      • The default task specification, which comprises the Balanced configuration and 2 GB of memory, is sufficient for most scenarios.

      • Click Next.

    4. Filter tables and actions.

      • Select the tables to synchronize. To ensure consistency of the UPDATE and DELETE operations between the target and source databases, the source database table must have a primary key or unique constraint.

      • Click Next.

    5. Configure data processing.

      • You can add data filtering conditions, upload custom code, and perform batch operations.

        • Data filtering conditions: Add data filtering conditions in the Actions column on the left side of the data processing page.
        • Upload custom code: Custom code allows you to use the Java language to write real-time data processing logic for each data row. After the code is uploaded to the CloudCanal platform, the custom processing logic will be automatically applied to full and incremental synchronization data during data synchronization task execution, and then the processed data will be transmitted to the target data source.
        • Batch operations: You can add data filtering conditions in batches and trim columns in batches.
      • Click Next.

    6. Verify the task configuration.

      After the configuration is verified, click Create Task.

    View the task status

    After an incremental synchronization task is created, it will automatically perform Schema Migration, Full Data Migration, and Incremental Synchronization.

    Return to the CloudCanal task management console and click Refresh in the upper-right corner to view the real-time status of the task.

    Previous topic

    Synchronize data from OceanBase Database to a MySQL database using Canal
    Last

    Next topic

    Use Flink CDC to migrate data from OceanBase Database to a MySQL database
    Next
    What is on this page
    Prerequisites
    Procedure
    Add data sources
    Create a task
    View the task status