Raised This Month: $51 Target: $400
 12% 

[HELP]How to refresh mySQL database?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mini Purple
Member
Join Date: May 2014
Old 12-31-2014 , 16:53   [HELP]How to refresh mySQL database?
Reply With Quote #1

guys, how do i refresh a mySQL database connection? i use sourcebans and i lost connection to the database a lot of times, how do i refresh only the database? because if i reload the plugin my server freeze.

-thx
Mini Purple is offline
Send a message via Skype™ to Mini Purple
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 12-31-2014 , 18:04   Re: [HELP]How to refresh mySQL database?
Reply With Quote #2

Refresh the database? The issue here is likely connectivity between your game and database servers. Either that or there is some kind of misconfiguration on the DB server.
__________________
recon0 is offline
Mini Purple
Member
Join Date: May 2014
Old 12-31-2014 , 18:34   Re: [HELP]How to refresh mySQL database?
Reply With Quote #3

its not a misconfig, i just want something to try to connect again to the db
Mini Purple is offline
Send a message via Skype™ to Mini Purple
caxanga334
Member
Join Date: Nov 2013
Location: Brazil
Old 12-31-2014 , 21:20   Re: [HELP]How to refresh mySQL database?
Reply With Quote #4

Like this, DB is working and connected but something happens and connection is lost, are there any way to reconnect to the DB?

Last edited by caxanga334; 12-31-2014 at 21:20.
caxanga334 is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-31-2014 , 21:36   Re: [HELP]How to refresh mySQL database?
Reply With Quote #5

Quote:
Originally Posted by caxanga334 View Post
Like this, DB is working and connected but something happens and connection is lost, are there any way to reconnect to the DB?
You can reload the plugins
You can restart the server
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Mini Purple
Member
Join Date: May 2014
Old 01-01-2015 , 12:42   Re: [HELP]How to refresh mySQL database?
Reply With Quote #6

well, i dont want to restart the server because i'll lose players, and i cant reload the sourcebans plugin, it crash my server, a lot of plugins crash my server if i reload it, u know how to fix it?
Mini Purple is offline
Send a message via Skype™ to Mini Purple
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-01-2015 , 12:56   Re: [HELP]How to refresh mySQL database?
Reply With Quote #7

Something is seriously wrong if reloading plugins crashes your server
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Mini Purple
Member
Join Date: May 2014
Old 01-02-2015 , 01:24   Re: [HELP]How to refresh mySQL database?
Reply With Quote #8

Quote:
Originally Posted by friagram View Post
Something is seriously wrong if reloading plugins crashes your server
it dont rlly crash my server, it just freeze it, but i need to restart it, and its not all plugins that crash my server, for exemple the customweaponstf, if i add a weap and reload it, it freeze, but if i remove a weap and reload it, it dont freeze, i got the newest version of SM and ima test it out
Mini Purple is offline
Send a message via Skype™ to Mini Purple
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 01-03-2015 , 11:49   Re: [HELP]How to refresh mySQL database?
Reply With Quote #9

Quote:
Originally Posted by friagram View Post
Something is seriously wrong if reloading plugins crashes your server
Not really. Reloading plugins that make use of the DBI has been a known crasher/deadlocker for a long time.

Plenty of related filed bugs to look at:

https://bugs.alliedmods.net/show_bug.cgi?id=5993
https://bugs.alliedmods.net/show_bug.cgi?id=6130
https://bugs.alliedmods.net/show_bug.cgi?id=5883
https://bugs.alliedmods.net/show_bug.cgi?id=5180
__________________

Last edited by VoiDeD; 01-03-2015 at 11:49.
VoiDeD is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-03-2015 , 18:16   Re: [HELP]How to refresh mySQL database?
Reply With Quote #10

Quote:
Originally Posted by VoiDeD View Post
Not really. Reloading plugins that make use of the DBI has been a known crasher/deadlocker for a long time.

Plenty of related filed bugs to look at:

https://bugs.alliedmods.net/show_bug.cgi?id=5993
https://bugs.alliedmods.net/show_bug.cgi?id=6130
https://bugs.alliedmods.net/show_bug.cgi?id=5883
https://bugs.alliedmods.net/show_bug.cgi?id=5180
I think this may be due to lots of handles being left open when queries never time out.
I've seen fatal logs where plugins are unloaded because too many queries are open.. But looking over the code, the only way that could ever happen is if they never returned.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode