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