I want to execute a MySQL query to delete all rows of the Wp_posts table that post_parent represents the Wp_posts row with post_type installed in the product;
So i do
INSERT INTO temp (SELECT DISTINCT id FROM wp_posts WHERE post_type = "product")
(Inserts 4k lines)
DELETE FROM wp_posts WHERE post_parent IN (SELECT tid FROM temp)
..
After about 100 seconds, it returns
ERROR 1317 (70100): Request was aborted
What could make this request so bleeding?
source share