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文档第一次的坑了。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM