Redgate Flyway

OceanBase Database

Supported Versions and Support Levels

Driver

Flyway's OceanBase implementation reuses significant parts of the MySQL Database parser, since OceanBase operates in MySQL-compatible mode.

Item Details
URL format jdbc:oceanbase://host:port/database
SSL support Not tested
Ships with Flyway Command-line No
Maven Central coordinates com.oceanbase:oceanbase-client
Supported versions N/A
Default Java class com.oceanbase.jdbc.Driver
Flyway Community implementation flyway-community-db-support

Java Usage

OceanBase support is a separate dependency for Flyway and will need to be added to your Java project to access these features.

Maven

Open Source

<dependency>
    <groupId>org.flywaydb</groupId>
    <artifactId>flyway-database-oceanbase</artifactId>
</dependency>

Gradle

Open Source

buildscript {
    dependencies {
        implementation "org.flywaydb:flyway-database-oceanbase"
    }
}

SQL Script Syntax

  • Standard SQL syntax with statement delimiter ;
  • MySQL-style single-line comments (# Comment)

Example

/* Single line comment */
CREATE TABLE test_data (
 value VARCHAR(25) NOT NULL,
 PRIMARY KEY(value)
);

-- Placeholder
INSERT INTO ${tableName} (name) VALUES ('Mr. T');

Notes

OceanBase is a MySQL-compatible database and Flyway usage is largely the same as for MySQL. For more details, please refer to the MySQL page.

This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved


Didn't find what you were looking for?