The thread has called mysql_lock_tables() and the thread state has not been updated since. This is a very general state that can occur for many reasons.

For example, the thread is going to request or is waiting for an internal or external system lock for the table. This can occur when InnoDB waits for a 

table-level lock during execution of LOCK TABLES. If this state is being caused by requests for external locks and you are not using multiple mysqld servers 
that are accessing the same MyISAM tables, you can disable external system locks with the --skip-external-locking option. However, external locking is
disabled by default, so it is likely that this option will have no effect. For SHOW PROFILE, this state means the thread is requesting the lock (not waiting
for it).

System lock

这个线程是被mysql_lock_tables()调用的。这种状态可能是很多种原因造成的。

例如,一个线程想请求或者正在等一个表的内部或者外部的system lock;

也可能是InnoDB在执行lock tables的时候,等表级锁;

也可能是请求内部锁,比如访问相同MyISM表没有用多个mysqld服务;

遇到这种情况,可以用--skip-external-locking选项,禁用内部的system locks。然而,内部锁如果默认禁用的话,那个选项就会没用了。

如果是在show profile的时候遇到这种状态,就说明这个线程正在请求锁(不是等)。

来源:https://dev.mysql.com/doc/refman/5.7/en/general-thread-states.html

最新文章

  1. Asp.Net Core--基于角色的授权
  2. 你写的return null正确吗?
  3. ssh 协议执行repo sync 报错:Permission denied (publickey)
  4. android BroadcastReceiver
  5. Unity3D 中 Generic 动画导入设置和 Root Motion 之间的关系
  6. ZOJ2539 Energy Minimization(最小割)
  7. 如何在后台动态生成ASPxCheckBoxList标签并循环(数据调用存储过程)
  8. wordpress设置导航栏
  9. spoj 839 Optimal Marks(二进制位,最小割)
  10. HDOJ/HDU 1328 IBM Minus One(水题一个,试试手)
  11. JSTL时间比较,jstl日期比较,jsp比较时间
  12. 奔五的人学IOS:swift练手与csdn,最近学习总结
  13. find the safest road--hdu1596
  14. iOS基础 - NSURLSession
  15. css修炼宝典
  16. RabbitMQ消息队列入门篇(环境配置+Java实例+基础概念)
  17. 转-->>mysql的bin log
  18. python 管道、数据共享、进程池
  19. 9.7 dubbo心跳机制
  20. Resharper插件安装和破解

热门文章

  1. C#反射的基本应用
  2. 群晖Synology
  3. 读取二元组列表,打印目录的层级结构-----C++算法实现
  4. Spring整合JPA时,为实体类添加@Entity注解时提示The type MultipartEntity is deprecated
  5. WinForm Column cannot be added because its CellType property is null.
  6. C语言 算平均数
  7. POJ - 2387 Til the Cows Come Home (最短路Dijkstra+优先队列)
  8. 1.Java Spring MVC入门 安装
  9. 一个网站同一域名不同目录下的文件访问到的cookie值不同是什么原因?
  10. Navigator 传值