Jump to content

[Solved] MYSQL.TOO MANY CONNECTIONS


Recommended Posts

It's really not complicated. Just close your connections when you're done using them, and don't try to open 100s of them at the same time.

https://stackoverflow.com/questions/19563474/how-to-close-database-connection-in-node-js

I believe MySQL Workbench only uses 1 connection at a time, but if all 10 of your available connections are already taken by Node then it won't be able to connect with even 1. If you can't figure out how to add connection.end(); to your code you can always get a VPS where you can open 10000 simultaneous connections without blocking everyone else from accessing the database. They start at $4 per month and are available at https://heliohost.org/vps/ 

Link to comment
Share on other sites

  • Krydos changed the title to [Solved] MYSQL.TOO MANY CONNECTIONS

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...