long running processes - MySQL - can I limit the maximum time allowed for a query to run? -
i'm looking way limit max running time of query on mysql server. figured done through my.cnf
configuration file, couldn't find relevant in docs. knows if done? thanks.
there no way specify maximum run time when sending query server run.
however, not uncommon have cron job runs every second on database server, connecting , doing this:
- show processlist
- find connections query time larger maximum desired time
- run kill [process id] each of processes
Comments
Post a Comment