Warning: mysqli::mysqli(): (HY000/1226): User 'gajendra' has exceeded the 'max_user_connections' resource (current value: 30)
Connection failed:- User 'gajendra' has exceeded the 'max_user_connections' resource (current value: 30)
You need to lower the number of your mysql connections.
I don't know what you're doing but I never needed 30.
Maybe you have looping scripts in the background.
Try restarting the server by switching php versions back and forth in the cpanel.
If you must run 30 scripts, I suggest you upgrade.
Do you know for sure how many scripts are running in the background? Are You certain?
If you have more than 30 visitors at the same moment running the same script it can happen too. If this is the case, you'll have to upgrade your plan. The best would be to contact support on chat because they can look into your account and suggest what you might need.
Edit: By the way, regular Google analytics or JS analytics scripts can't track all your visits. So if you're using that it's not going to be an exact number.
My sites get two or three times more visits from people with disabled JS and tracking. I track them with my own tool.
We have only 4 database in cpanel so we have used only 4 places for mysql database connections. Is any other script causing this type of issue. We needed to fix this issue asap. Please guide.
Every time a user runs a script that connects to the mysql a new connection is open. Maybe your code is opening too many connections. Restart your server first and see if it fixes it.If it doesn't contact support through chat.