码迷,mamicode.com
首页 > 其他好文 > 详细

flush tables 好危险啊

时间:2015-04-29 17:05:50      阅读:118      评论:0      收藏: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 所阻塞。

flush tables 好危险啊

标签:

原文地址:http://www.cnblogs.com/youge-OneSQL/p/4466298.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!