I used a loop in my php script to run insert queries into my db. The loop was looping thousand times. I stop my php script while it was till running. Nevertheless, my db table keeps on getting populated continously. I guess that there must be a queue. but this is only a guess. So I am wondering if I can stop all the pending queries from being executed? Also I am wondering if it is possible to see that queue somewhere? Thank you in advance for your replies. Cheers. Marc.
Share
There is no queue, unless you were using
INSERT DELAYED.You can kill the process that is inserting the data like this:
Run
SHOW PROCESSLISTto find the id of the connecton you want to killThen run
KILL CONNECTION <thread_id>to kill that connection.