Hello friends, I am having error connecting database for my website and when I asked the host support, they suggested below and I don't have any clue on what they are talking about. Please help me. Too Many Connections can be caused by either a lot of simultaneous connections or by old connections not being released soon enough. There are some simple changes you can make to your PHP code and your MySQL settings to prevent both. Please PM me ...if you are willing to fix the issue...I will pay if needed. Thanks.
What exactly is your problem? You cannot connect to your database? Or you can connect but are being limited because you have too many connections? How much traffic/page views do you have? You may be hitting the limits for shared hosting.
Check your db settings(DB user, DB name info in settings). If all correct then its your provider who should solve this for you.
The host is suggesting that you are using too many MySQL connections. This can be caused by high traffic or even overloaded servers on the host's end. If you're not experiencing high traffic, the issue could potentially be that your web host has overloaded their servers. You should ask them to take a look, since your settings are correct. Alternatively, you may want to migrate to another web host.
Your host is saying that your script might be poorly coded, and has unclosed MySQL connections. Which will eventually lead to "Too Many MySQL Connections".
If you have a heavily-trafficked site, it may be time to consider upgrading to a semi-dedicated server or a VPS. It sounds like you are reaching the limits of shared hosting, which I am guessing is what you are currently using?