I keep running up against the following error: “Failed to create connection pool: 1040 (08004): Too many connections”. In the DigitalOcean MySQL DB dashboard, how do I reset database connections / reset my database cluster. Thanks,
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya,
First, I suggest you find the source of those connections. Are they connections that were not closed properly, or do you have a lot of connections to your application?
If it’s the first, until you fix the problem, these connections will continue to appear and stay open. Only after that is done, you can be considered looking at the connections.
If your application has a lot of traffic, thus creating a lot of DB connections, then you’ll need to consider upgrading.
As for the connections they should clear automatically once they timeout.