tags:

views:

88

answers:

2

How do I automatically interrupting long queries in the mysql, if it possible? I'm understand, that I need optimize queries instead of. But now I have access on database server only.

+1  A: 

As far as I know, you can not stop a query once it has been executed.

I'm understand, that I need optimize queries instead of.

That's the way you should go.

Other Possibility:

You may want to have a look at SQL Transactions if applicable in your case.

Sarfraz
A: 

While you are optimizing your queries you can interrupt them by killing the corresponding thread.

newtover