今日某系統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文檔第一次的坑了。