I would like to set a maximum execution time for sql queries like set_time_limit() in php. How can I do ?
pt_kill has an option for such. But it is on-demand, not continually monitoring. It does what @Rafa suggested. However see --sentinel for a hint of how to come close with cron.
--sentinel
cron