nodejs的mysql模块学习,八关闭连接池

关闭连接池

可以用pool.end()关闭连接池

pool.end(function (err) {
  // 所有的连接都已经被关闭
});

当关闭之后pool将不可以getconnection()