Bytebase is an open-source database change management and collaboration tool that provides both SaaS services and a self-hosted version. This topic will use the OceanBase Cloud MySQL-compatible tenant as an example to demonstrate how to manage OceanBase instances using Bytebase.
Prerequisites
Deploy Bytebase. For specific instructions, refer to the GitHub repository.
Log in to OceanBase Cloud database,locate the connection string of the target tenant. For more information, refer to Connect using a public IP address.
On the instances list page, expand the target cluster instance, and click Connect under the target tenant.
In the pop-up window, select Connect with Public IP.
Add the Bytebase IP address in the pop-up window. For more information, see Set allowlist groups.
Based on the generated connection string, enter the information of host, port, username, and password in Step 3 below.

Create an account, authorize the account according to permission requirements of Bytebase and your actual business needs. For details, refer to Create an account.
Procedure
Log in to the Bytebase platform, follow the prompts to create a workspace and enter your workspace.

Click Add Instance and select OceanBase (MySQL) in the pop-up box.

Field Description Instance Name Specify your instance name. Environment Select the Test or Pro environment based on your needs. Host or Socket Taked from the -hparameter of the connection string generated in the Prerequisites section.Port Taken from the -pparameter of the connection string generated in the Prerequisites section.Username Taken from the -uparameter of the connection string generated in the Prerequisites section.Password Enter the password of the account created in OceanBase Cloud. Click Test Connection. After the connection is successful, click Create.
After the creation is complete, you can integrate with GitOps.
- If you need to enable the GitOps workflow, you can integrate with your code repository service, such as GitHub, GitLab, or Bitbucket Cloud, in Bytebase.
- Configure Git repositories to store database change scripts and submit changes to the corresponding branches. Bytebase will automatically pull changes and execute the approval and release process.
Manage database changes.
- Create SQL migration scripts and submit change requests through the Bytebase interface.
- Participate in the review process and collaborate with other team members to review SQL changes.
- After approval, execute the approved changes, and Bytebase will automatically apply them to the target database within the preset time window.