[英]show mysql myisam locks
when dropping or renaming a table with myisam storage engine, I realize that it's waiting for table metadata lock, however, show full processlist doesn't reveal the offending query. 当使用myisam存储引擎删除或重命名表时,我意识到它正在等待表元数据锁,但是,显示完整的进程列表不会显示有问题的查询。 any idea? 任何想法?
| 462 | root | xxx.xxx.xxx.xx:54658 | mydb | Sleep | 1162 | | NULL | | 465 | root | localhost | mydb | Query | 0 | NULL | show full processlist | | 466 | root | localhost | mydb | Query | 125 | Waiting for table metadata lock | alter table mytable rename to mytable_junk |
Show processlist will only show connections for the current user. 显示进程列表仅显示当前用户的连接。 Login as root, or add "Process" permissions to your user. 以root身份登录,或向您的用户添加“处理”权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.