mysql> select concat('KILL ',id,';') from information_schema.processlist where user='root' into outfile '/tmp/a.txt';
+------------------------+
| concat('KILL ',id,';') |
+------------------------+
| KILL 3101; |
| KILL 2946; |
+------------------------+
2 rows in set (0.00 sec)
mysql> source /tmp/a.txt;
Query OK, 0 rows affected (0.00 sec)
'On-premise > Mysql, Mariadb' 카테고리의 다른 글
| Mysqltuner (mysql 튜닝) (0) | 2023.11.06 |
|---|---|
| mysql-5.6.46 소스 설치 (0) | 2023.11.06 |
| MySQL 5.5.62 소스 설치 (0) | 2023.11.06 |
| slow(슬로우) 쿼리 설정 방법 (0) | 2023.11.06 |
| Mysql dump 및 restore 관련 (0) | 2023.11.06 |