zoukankan      html  css  js  c++  java
  • flush tables 好危险啊

    请看图

    +----+------+-----------+------+------------+------+-------------------------+----------------------------------------+
    | Id | User | Host | db | Command | Time | State | Info |
    +----+------+-----------+------+------------+------+-------------------------+----------------------------------------+
    | 1 | root | localhost | test | Query | 78 | User sleep | select sleep(500) , id from my_test1_0 |
    | 9 | root | localhost | NULL | Query | 71 | Waiting for table flush | flush tables |
    | 10 | root | localhost | test | Field List | 24 | Waiting for table flush | |
    | 11 | root | localhost | NULL | Query | 0 | init | show processlist |
    +----+------+-----------+------+------------+------+-------------------------+----------------------------------------+

    如果有个运行时间很长的语句,阻塞了flush tables运行,那么后续的所有语句都会被这个flush tables 所阻塞。

    MySQL限时解答,24小时内友哥专业解答
    http://www.yougemysqldba.com
    如有进一步需要请联系微信onesoft007
    微博账号@友哥一指
  • 相关阅读:
    Windows进程/线程创建过程
    固件安全研究
    区块链安全研究的总结
    CoTreatAsClass一些注意事项
    Ring3 读取SSDT
    User Mode Scheduling
    首次异常和二次异常
    offer终于有着落了
    AtomBombing
    Retn
  • 原文地址:https://www.cnblogs.com/youge-OneSQL/p/4466298.html
Copyright © 2011-2022 走看看