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

    ------道不行,乘桴浮于海!------ ------欲讷于言,而敏于行!-------
  • 相关阅读:
    SpringBoot JdbcTemplate多数据源
    SpringBoot Mybatis多数据源
    SpringBoot 配置文件2
    SpringBoot 配置文件1
    SpringBoot 日志配置
    乌镇行
    防火墙
    PL/SQL查询结果窗口太小且显示不完全
    python 列表解析
    HTML
  • 原文地址:https://www.cnblogs.com/dh17/p/14144002.html
Copyright © 2011-2022 走看看