mysql pt-archiver archiving tool

Parameters rich can specify whether to delete the original data create good sleep interval in advance to address in the target library

 

pt-archiver --source h=127.0.0.1,u=root,p=root_pass,P=3306,D=dba_test,t=t2 --dest h=127.0.0.1,P=3306,u=root,p=root_pass,D=dba_test,t=t2_201905  --progress 5000 --no-check-charset --where "1=1" --statistics --charset=UTF8 --limit=10000 --txn-size 1000 --no-delete
 
pt-archiver --source h=127.0.0.1,u=root,p=root_pass,P=3306,D=dba_test,t=user --dest h=127.0.0.1,P=3306,u=root,p=root_pass,D=dba_test,t=user_201905  --progress 10000 --no-check-charset --where "id<10000" --statistics --charset=UTF8 --limit=10000 --txn-size 1000 
 
 

Guess you like

Origin www.cnblogs.com/mhabbyo/p/10948818.html