Open craigcosmo opened 3 years ago
I had a such problem too. In my case there was too big connectionLimit value (1000) for the mysql.createPool method but my SQL server was able to proceed with 100 connections only (max_connections variable), so I reduced connectionLimit to 100 and lifted max_connections up to 1000 and it works for me. Maybe it makes sense to play around with the connection_timeout on your DB server.
i think you forget closing connection after finish query and connections will stack
pool.js
home-route.js
When I do like this, I got error too many connection