1205, 'Lock wait timeout exceeded; try restarting transaction'
mysql> show processlist;
+--------+------+--------------------+-------+---------+------+--------------+-+
| Id | User | Host | db | Command | Time | State | |
+--------+------+--------------------+-------+---------+------+--------------+-+
| 306835 | root | localhost | dmsDB | Query | 3651 | updating | |
| 309090 | root | localhost | dmsDB | Sleep | 1018 | | |
| 309199 | root | 192.168.1.231:2452 | dmsDB | Query | 53 | Sending data | |
| 309288 | root | localhost | NULL | Query | 0 | NULL | |
+--------+------+--------------------+-------+---------+------+--------------+-+
4 rows in set (0.00 sec)
kill 306835
kill 309199
mysql> show processlist;
+--------+------+-----------+-------+---------+------+-------+-----------------+
| Id | User | Host | db | Command | Time | State | Info |
+--------+------+-----------+-------+---------+------+-------+-----------------+
| 306835 | root | localhost | dmsDB | Killed | 4942 | end | DELETE FROM t_do|
| 309090 | root | localhost | dmsDB | Sleep | 2309 | | NULL |
| 309288 | root | localhost | NULL | Query | 0 | NULL | show processlist|
+--------+------+-----------+-------+---------+------+-------+-----------------+
unlock tables;
출처 : http://blog.naver.com/w123654/10035121619
'[DataBase] > MySql' 카테고리의 다른 글
[ERROR]host is blocked because of many connection errors unblock with 'mysqladmin flush-hosts' (0) | 2016.04.19 |
---|---|
랭킹쿼리 (0) | 2015.08.03 |
CONCAT() 문자열 합치기 (0) | 2015.06.08 |
MySQL max connections 설정 (0) | 2015.06.05 |
SHOW 명령어 (0) | 2015.04.02 |
댓글