#!/bin/bash
date
pt-online-schema-change --alter "ADD INDEX idx_01(create_time)" D=database_name,t=table_name --charset utf8mb4 --nocheck-replication-filters --user=root --password='xxx' \
--max-lag=30 --execute
标签:name,pt,--,online,change,schema From: https://www.cnblogs.com/52shaidan/p/17807586.html