node-mysql2
node-mysql2 copied to clipboard
not closing connection
hello, I'm developing a next.js with a mysql database, I'm using planetscale as database server... here a small example of code: ` connection = await mysql.createConnection(process.env.MYSQL_URL); await connection.connect();
[any kind of query here]
connection.close(); `
when I check the connections in planetscale dashboard, every connections still open, I just close the connections when I close the node app...
I've tested close, end and destroy commands with same result...
I don't know what I'm doing wrong or if I miss something...
Thx, Alexandre