title: Error handling and lost connection in node.js mysql using pool
body: <p>I am using node.js npm module mysql for connection with a MySQL database.</p>
  
  <p>I see there is a possibility to use:</p>
  
  <ul>
  <li>either pool.getConnection(), connection.query() and connection.release()</li>
  <li>or pool.query</li>
  </ul>
  
  <p>I have two questions regarding the second scenario.</p>
  
  <p>1) Is there any automatic reconnect in case of error, lost connection while using pool.query? (is 'handle disconnect' function needed while using pool?</p>
  
  <p>2) Using the first approach I can set connection.on('error', function(){...}). How to do this in the second case? (pool.on('error'...) ?)</p>