mysql root用户kill connection报ERROR 1095 (HY000): You are not owner of thread N

今日某系统mysql root用户kill connection时报ERROR 1095 (HY000): You are not owner of thread N

按说通过root用户具有super权限,不应该会出现这种情况,最后通过关闭客户端相关连接使得问题临时解决。

事后经测试,当session在执行ddl语句时,如果kill connection时报ERROR 1095 (HY000): You are not owner of thread N,如下: 

| 2714 | root | localhost | pxc_test | Query | 38 | Waiting for table metadata lock | drop table t | 0 | 0 |

mysql> kill 2714;
ERROR 1095 (HY000): You are not owner of thread 2714

其他执行DML语句的连接不受此影响。

mysql> kill 2712;
Query OK, 0 rows affected (0.01 sec)

文档并没有提及,这好像已经不是mysql文档第一次的坑了。

 

posted @ 2016-07-26 17:28  zhjh256  阅读(4668)  评论(0编辑  收藏  举报