Thread: [Solved] Database file not works
View Single Post
Author Message
dangerlord63
Senior Member
Join Date: Aug 2011
Old 10-01-2017 , 06:31   Database file not works
Reply With Quote #1

Hi guys, i installed sourcebans plugin and i made data base file settings but server is not connecting the correct ip adress, i say connect to x it connects the machine first ip.
databases.cfg
PHP Code:
"Databases"
{
    
"driver_default"        "sqlite"
    
    
// When specifying "host", you may use an IP address, a hostname, or a socket file path
    
    
"default"
    
{
        
"driver"            "default"
        "host"                "localhost"
        "database"            "sourcemod"
        "user"                "root"
        "pass"                ""
        
//"timeout"            "0"
        //"port"            "0"
    
}
    
    
"storage-local"
    
{
        
"driver"            "sqlite"
        "database"            "sourcemod-local"
    
}

    
"clientprefs"
    
{
        
"driver"            "sqlite"
        "host"                "localhost"
        "database"            "clientprefs-sqlite"
        "user"                "root"
        "pass"                ""
        
//"timeout"            "0"
        //"port"            "0"
    
}
    
"sourcebans"
    
{
        
"driver"            "mysql"
        "host"                "185.122.xxx.xx"
        "database"            "cs_ban"
        "user"                "cs_ban"
        "pass"                "xxxxxxx"
        
//"timeout"            "0"
        //"port"            "3306"
    
}

PHP Code:
Errors:
sbpp_checker.smx (SourceBans++: Bans Checker): Failed to connect to SourceBans DB, [1045]: Access denied for user 'cs_ban'@'185.100.100.50' (using passwordYES
185.100.100.50 is the main ip of the machine.

Last edited by dangerlord63; 10-03-2017 at 20:01.
dangerlord63 is offline