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:

  1. show processlist
  2. find connections query time larger maximum desired time
  3. run kill [process id] each of processes

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -