Hi
When I use pt-online-schema-change 3.4.0 to add column to a large mysql table of 50 million, I get an error:Exiting on SIGHUP. Here are my steps and related information.
- OS version is CentOS 7.9 (Final) 4.14.105-19-0023.1 #1 SMP Tue Mar 8 15:12:36 CST 2022 x86_64 x86_64 x86_64 x86_64 GNU/Linux
- script:
#! /bin/bash
host=“127.0.0.1”
port=“3306”
user=“root”
passwd=“password”
database=“test”
table=“test_copy1”
echo date +"%Y-%m-%d %H:%M:%S"
echo $table
/bin/pt-online-schema-change --host=${host} --port=${port} --user=${user} --password=${passwd} --recursion-method=processlist --no- version-check --charset=“utf8” --check-interval=5 --chunk-time=1 --max-load=threads_running:80 --max-lag=3 --chunk-size=3000 D=${database },t=${table}
–alter=“ADD COLUMN matrix_id tinyint(1) NOT NULL DEFAULT 0 COMMENT ‘matrix ID’ AFTER sid” --print --execute
3. Execution method:
nohup /bin/bash /mnt/add_modify_online.sh &
4. Error message:
Copying test
.test_copy1
: 99% 00:01 remain
Exiting on SIGHUP.
Not dropping triggers because the tool was interrupted. To drop the triggers, execute
Could anyone plz help me out? thx so much.