title: How can I stop a MySQL query if it takes too long?
body: <p>Is it possible to timeout a query in MySQL?</p>
  
  <p>That is, if any query exceeds the time I specify, it will be killed by MySQL and it will return an error instead of waiting for eternity.</p>