title: Kill all sleeping mysql pool connections using node
body: <p>I am using node for my project and using connection pooling, whenever I query <code>show processlist</code> I found more than 200 sleep connections even though i am releasing it after every query like this-</p>
  
  <pre><code>    return new Promise((resolve, reject) =&gt; {
  
      sql.getConnection(function (err, conn) {
          if (err) {
              conn.release();
              reject(err)
          }
          conn.query('QUERY', function (err, rows) {
              conn.release();
              if (err) {
                  reject(err)
              }
              else {
                  resolve(rows[0])
              }
          })
      })
  })
  </code></pre>
  
  <p>Still i found 200 plus sleep connections. Is there any way to kill useless sleeps connection through node? Or is it fine having so many sleep connections?</p>
  
  <p>Thanks in advance!</p>