Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2004
Posts: 490
Likes: 2
Addict
Addict
Joined: Aug 2004
Posts: 490
Likes: 2
I'm currently getting more visitors to the site than usual and at peak times the following error message gets logged >100 times in the admin panel under SQL errors:

Script: - Line: Unable to connect to the database! - Too many connections


Is it the my.cnf file that needs changing? Which settings should I alter, "max_connections" or "max_user_connections" or both?

Joined: Dec 2003
Posts: 6,649
Likes: 88
Joined: Dec 2003
Posts: 6,649
Likes: 88
Try this post:
https://www.ubbcentral.com/forums/ubbthreads.php/ubb/showflat/Number/218977/
You can also search this forum.
the search term would be:

"Too many connections"

Include the quotes to search for the phrase.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2004
Posts: 490
Likes: 2
Addict
Addict
Joined: Aug 2004
Posts: 490
Likes: 2
Thanks, Ruben.

It's times like these when you really wish you had your bulletin board hosted on a server managed by Mindraven. smile

Joined: Dec 2003
Posts: 6,649
Likes: 88
Joined: Dec 2003
Posts: 6,649
Likes: 88
I am happy since I switched to Mindraven a few months ago.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2004
Posts: 490
Likes: 2
Addict
Addict
Joined: Aug 2004
Posts: 490
Likes: 2
I believe it's the best way forward, might as well let the best people out there develop the software and manage your server.

Thanks for the link you provided, I have also searched for some more results and found some interesting tips on increasing the connections.

Is there a special program I can use on a mac to download the my.cnf file and then upload it again, or possible just edit the one on the server directly?

Joined: Dec 2003
Posts: 6,649
Likes: 88
Joined: Dec 2003
Posts: 6,649
Likes: 88
Not sure about a mac, But I just use Filezilla for ftp connections.
They have a mac flavor but I have never used it.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
you could SSH into the box and go to /etc/my.cnf and edit there.

of FTP ( sftp ) in with root psw and edit it that way smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (Gizmo), 156 guests, and 110 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)