Linuxサーバーでmysqlを接続したmysql -u root -p dbnmae
後、cmdを使用してshow processlist;
結果を次のように表示しました。
+---------+------+
| Id | User |
+---------+------+
| 123 | root |
| 1234 | root |
| 1235 | root |
| 1236 | root |
| 1004 | root |
| 1205 | root |
| 1216 | root |
これで、1つのコマンドを使用していくつかのprocess_id(1234、1005、1205)を終了したいと思います。さまざまな方法で人を殺そうとしましたが、うまくいきませんでした。次のエラーが表示されます
mysql> kill 1234 1005 1205;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1205' at line 1
この問題を解決するのに役立ちますか?これはDB2サーバーです。