1.修改字段长度
name字段之前32个字符修改为64个字符,备注需要是双引号,中文的需要加上字符集
pt-online-schema-change -h localhost -uroot -pyeemiao1117 --charset='utf8mb4' --alter='modify column name varchar(64) COMMENT "用户姓名"' D=db_admin,t=tb_test --execute
name字段之前32个字符修改为64个字符,备注需要是双引号,中文的需要加上字符集
pt-online-schema-change -h localhost -uroot -pyeemiao1117 --charset='utf8mb4' --alter='modify column name varchar(64) COMMENT "用户姓名"' D=db_admin,t=tb_test --execute