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

Sourcebans do not accept settings in the databases.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HetziBoy
New Member
Join Date: Oct 2012
Old 10-26-2012 , 13:50   Sourcebans do not accept settings in the databases.cfg
Reply With Quote #1

Hello dudes,

i have a huge problem...

I installed sourcebans, added my server to sourcebans and edited the databases.cfg how sourcebans Interface told me

Here is the file:

"Databases"
{
"driver_default" "mysql"

"sourcebans"
{
"driver" "mysql"
"host" "#######"
"database" "bans2"
"user" "######"
"pass" "######"
//"timeout" "0"
"port" "3306"
}

"storage-local"
{
"driver" "sqlite"
"database" "sourcemod-local"
}

"clientprefs"
{
"driver" "sqlite"
"host" "localhost"
"database" "clientprefs-sqlite"
"user" ""
"pass" ""
//"timeout" "0"
//"port" "0"
}

"default"
{
"driver" "default"
"host" "########"
"database" "###########"
"user" "##########"
"pass" "##########"
//"timeout" "0"
"port" "3306"
}
}


This is the error output from the server console:

L 10/26/2012 - 19:49:01: [sourcebans.smx] Database failure: [1045]: Access denied for user 'root'@'starscream.famous-hunterz.net' (using password: YES). See FAQ: http://www.sourcebans.net/node/20


I asked me a lot of times, why use sourcebans these credentials ?!

I hope you can help me out of this shit

Thanks
HetziBoy is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-27-2012 , 10:52   Re: Sourcebans do not accept settings in the databases.cfg
Reply With Quote #2

It's the ip the mysql server sees the gameserver connecting from, not the ip the gameserver tries to connect to. You need to allow connections from your sourcebans user for the ip/hostname shown in the error, like the FAQ tells you.

By the way: DON'T USE THE ROOT USER EVER!
__________________
Peace-Maker is offline
OrangePaw
Junior Member
Join Date: Aug 2012
Location: Florida
Old 10-27-2012 , 19:23   Re: Sourcebans do not accept settings in the databases.cfg
Reply With Quote #3

I'm not sure if this was the same as mine but if you have CPanel you need to add that IP mentioned to the Access List. That'll fix it right up.
OrangePaw is offline
Karotte
Member
Join Date: Feb 2014
Old 04-13-2014 , 08:56   Re: Sourcebans do not accept settings in the databases.cfg
Reply With Quote #4

what "host" in database.cfg do i have to use? The IP from webspace or IP from gameserver or what?
Karotte is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 04-13-2014 , 09:17   Re: Sourcebans do not accept settings in the databases.cfg
Reply With Quote #5

The ip from the database server. Usually it's the same ip as your webspace.
__________________
Peace-Maker is offline
Karotte
Member
Join Date: Feb 2014
Old 04-13-2014 , 09:42   Re: Sourcebans do not accept settings in the databases.cfg
Reply With Quote #6

Okey now its crazy...
i got 2 servers,

on the 1. server it works fine, when i ban per sourcebans or ingame. Im banned and it works..

if i ban per sourcebans, there is "player found and got kicked" and "not found". I was on the server, where SOURCEBANS DIDNT WORK and got kicked! but i can rejoin and i am not banned.. its the same sourcebans.cfg but server id "1" -> "2"

when i have 2 servers, is the database.cfg the same on both servers?

Last edited by Karotte; 04-13-2014 at 09:46.
Karotte is offline
sixten_8_9@
Senior Member
Join Date: Jun 2009
Location: Sweden
Old 04-13-2014 , 11:08   Re: Sourcebans do not accept settings in the databases.cfg
Reply With Quote #7

Quote:
Originally Posted by Karotte View Post
Okey now its crazy...
i got 2 servers,

on the 1. server it works fine, when i ban per sourcebans or ingame. Im banned and it works..

if i ban per sourcebans, there is "player found and got kicked" and "not found". I was on the server, where SOURCEBANS DIDNT WORK and got kicked! but i can rejoin and i am not banned.. its the same sourcebans.cfg but server id "1" -> "2"

when i have 2 servers, is the database.cfg the same on both servers?
same,
you just need to change server id..
__________________
My Nick name is Nouton^
i have played cs for around 12years+
have build servers for about 12years
my website and my servers are: http://Nouton.se

i host at home did build my own server station for around 1300$.
sixten_8_9@ 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 04:52.


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