0

can I limit the maximum time allowed for a query to run in mysql 5.6.21?

patel sagar
  • 21
  • 1
  • 9

1 Answers1

0

Try this :-

time in milliseconds

SELECT MAX_STATEMENT_TIME = 1000 * FROM table;

or use this :-

SET GLOBAL MAX_STATEMENT_TIME=1000;

More information

if its not work please try this :-

SHOW PROCESSLIST
Run KILL [process id] 
Abhishek Sharma
  • 6,689
  • 1
  • 14
  • 20