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.

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.