ITPub博客

首页 > > > flush tables 好危险啊

flush tables 好危险啊

作者:友哥 时间:2015-04-29 16:17:00 0 删除 编辑

请看图

+----+------+-----------+------+------------+------+-------------------------+----------------------------------------+
| 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 所阻塞。

原文作者:;如有侵权,请联系管理员删除。

下一篇: 算法需要加强
请登录后发表评论 登录
全部评论

注册时间:2020-05-20

  • 博文量
    276
  • 访问量
    999