MySQL query not going away after being killed -


i have mysql query copying data 1 table processing. reason, query takes few seconds locked overnight , ran several hours. when logged in morning, tried kill query, still listed in process list.

| id      | user     | host      | db   | command | time  | state        | info                                                                                 | +---------+----------+-----------+------+---------+-------+--------------+--------------------------------------------------------------------------------------+ | 1061763 | tb_admin | localhost | dw   | killed  | 45299 | sending data | insert email_data_inno_stage select * email_data_test limit 4480000, 10000 | | 1062614 | tb_admin | localhost | dw   | killed  |   863 | sending data | insert email_data_inno_stage select * email_data_test limit 4480000, 10000 | 

what have caused this, , how can kill process can on work?

if table email_data_test myisam , locked, have held the insert.

if table email_data_test innodb, lot of mvcc data being written in ib_logfiles, may not have occurred yet.

in both cases, had limit clause scroll through 4,480,000 rows 10,000 rows needed insert.

killing query causes innodb table email_data_inno_stage execute rollback.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -