Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2006
Posts: 46
W
newbie
newbie
W Offline
Joined: Oct 2006
Posts: 46
Hey there,

My 7.5.3 Threads board is kaput and is giving a message to "flush hosts" in mysql...

Sounds mysterious... anyone had to do this, know if it'll fix the prob?

Thanks!

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
It's a legit message, all depends on your MySQL setup. You can read about what it means in more detail here:

http://dev.mysql.com/doc/refman/5.0/en/flush.html

Joined: Oct 2006
Posts: 46
W
newbie
newbie
W Offline
Joined: Oct 2006
Posts: 46
Thx, is it something that needs to be done with Threads in your experience? Just wondering what could cause it?

Joined: Oct 2006
Posts: 46
W
newbie
newbie
W Offline
Joined: Oct 2006
Posts: 46
Flushing the hosts fixed it... still no idea what caused it or whether I should change a parameter or something:-P

Joined: Oct 2006
Posts: 46
W
newbie
newbie
W Offline
Joined: Oct 2006
Posts: 46
In case the UBB guys are interested, here's what the hosting company support guy said about flushing hosts:

"This usually happens when you have more connections to the MySQL then the default limit of 250 connections or you have a script that is opening connections but not closing them. I strongly recommend to review your websites code and check if all the mysql connections are being closed after they have done their job."

250 connections seems like not very many, doesn't it?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
First thing is make sure you don't have persistent connections turned on in the control panel, so the connections will be closed when the script finishes.

As for limiting to 250 connections. It depends on how big and active your forums are. You're going to get a connection per script, so if you have a lot of users online at the same time, including spiders and guests, then yes you might reach that number where it becomes an issue.



Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 898 guests, and 155 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)