zoukankan      html  css  js  c++  java
  • pt-archiver 删除记录

    [root@masterdb-200 dbawork_bak]# pt-archiver --source h=192.168.151.198,P=3306,u=root,p='Z020',D=dbawork_bak,t=t2 --purge --charset=utf8mb4 --where "me_id<300000" --progress=200 --limit=200 --sleep=1 --txn-size=200 --statistics

    TIME ELAPSED COUNT

    2020-12-16T14:47:39 0 0

    2020-12-16T14:47:39 0 200

    2020-12-16T14:47:40 1 400

    2020-12-16T14:47:42 2 600

    …… …… ……

    2020-12-16T14:56:23 523 99800

    2020-12-16T14:56:24     524   99999
    Started at 2020-12-16T14:47:39, ended at 2020-12-16T14:56:25
    Source: A=utf8mb4,D=dbawork_bak,P=3306,h=192.168.151.198,p=...,t=t2,u=root
    SELECT 99999
    INSERT 0
    DELETE 99999
    Action        Count       Time        Pct
    sleep           500   500.1657      95.15
    deleting      99999    16.6744       3.17
    commit          500     4.1736       0.79
    select          501     1.1197       0.21
    other             0     3.5291       0.67

    ------道不行,乘桴浮于海!------ ------欲讷于言,而敏于行!-------
  • 相关阅读:
    HRBUST--2317 Game(完全背包)
    k8s的回滚应用
    python练习-2
    k8s HA 补充-(keepalived+haproxy配置)
    Etcd故障恢复记录
    kubernetes 1.14安装部署helm插件
    k8s Prometheus+CAdvisor+node_export+grafana
    k8s ingress部署
    k8s pvc
    k8s pv
  • 原文地址:https://www.cnblogs.com/dh17/p/14144002.html
Copyright © 2011-2022 走看看