Raised This Month: $32 Target: $400
 8% 

Reloading databases.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ginxeng
Senior Member
Join Date: Nov 2009
Location: Timber Doodle
Old 03-02-2011 , 18:36   Reloading databases.cfg
Reply With Quote #1

Is there a way to make the server reload the databases.cfg without restarting the server?
__________________
Ginxeng is offline
Send a message via AIM to Ginxeng Send a message via MSN to Ginxeng Send a message via Skype™ to Ginxeng
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-03-2011 , 08:52   Re: Reloading databases.cfg
Reply With Quote #2

Change map ?
That way I have change database setting...
Bacardi is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-09-2016 , 17:37   Re: Reloading databases.cfg
Reply With Quote #3

Biggest necro-bump ever. But is this possible to do this on-command. Reloading the map for me doesn't seem to have an effect on it. Looking to avoid restarting the server if possible.
ReFlexPoison is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 03-09-2016 , 18:41   Re: Reloading databases.cfg
Reply With Quote #4

Quote:
Originally Posted by ReFlexPoison View Post
Biggest necro-bump ever. But is this possible to do this on-command. Reloading the map for me doesn't seem to have an effect on it. Looking to avoid restarting the server if possible.
You could try reloading the sql extension.
Mitchell is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-10-2016 , 07:09   Re: Reloading databases.cfg
Reply With Quote #5

Already running connections won't get shutdown and restarted using new information from the databases.cfg. You have to reload your plugin as well, to get it connect with the changed databases.cfg config after mapchange. I wouldn't suggest unloading one of the SQL extensions just now..
__________________
Peace-Maker is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-10-2016 , 14:00   Re: Reloading databases.cfg
Reply With Quote #6

Thanks for the responses guys.
ReFlexPoison is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 03-24-2020 , 16:00   Re: Reloading databases.cfg
Reply With Quote #7

For those people ending up here by googling, there is an actual command now:

PHP Code:
sm_reload_databases 
https://github.com/alliedmodders/sou...tabase.cpp#L84
__________________

Last edited by ImACow; 03-24-2020 at 16:00.
ImACow 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 01:22.


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