Online Schema Change Commands for MySQL and MariaDB

Paste your SQL ALTER command below and get the corresponding online schema change command for safe database migrations.

1

Pick Tool

Choose between pt-online-schema-change or gh-ost based on your needs

2

Add ALTER Statement

Paste your SQL ALTER command in the text area

3

Copy Output Command

Copy the generated OSC command to your clipboard

4

Execute Statement

Run the command in your terminal to perform the schema change

Step 1

Select Online Schema Change Tool

Percona Toolkit (pt-online-schema-change)

A mature, production-tested tool that creates triggers to maintain consistency between the original and new table. Works with MySQL, MariaDB, and Percona Server.

Installation Instructions

Step 2

Paste Your DDL Command

Step 3

Copy Your Command to the CLI

Enter your ALTER TABLE command in Step 2 and click "Generate OSC Command" to get started.
Step 4

Command Explanation & Usage Guidance

Generate an OSC command above to see detailed explanations and usage guidance.