I have an issue after few hours of work with this setup:
- knex.js (mysql2)
- mysql8
- node.js 16 (docker FROM node:16)
"Can't add new command when connection is in closed state"
With this setup:
config: {
client: 'mysql2',
connection: {
host: '11.11.11.11',
user: 'some',
password: 'some',
database: 'some',
timezone: "+00:00",
charset: "utf8mb4"
}
},
pool: {
min: 1,
max: 10
}
This cant be solved only by restart of node.js, but then after few hours happens again