AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Sourcebans --> Unknown Database host (https://forums.alliedmods.net/showthread.php?t=292171)

bananabryan 12-31-2016 00:24

Sourcebans --> Unknown Database host
 
Hey guys, receiving an error from my sourcebans plugin (SB++) which is in relation to the SQL I have setup in my web hosting

Generalised Information

- Godaddy Shared Hosting

- IP of game server has been allowed through remote hosts in Cpanel

L 12/30/2016 - 11:39:36: [sourcebans.smx] Database failure: [2005]: Unknown MySQL server host '“166.62.27.61”' (1). See FAQ: https://sarabveer.github.io/SourceBans-Fork/faq/


IP of my site is 166.62.27.61, domain name is bryyan.com

Main issue is the fact that IP as well as domain name are valid unless I entered it wrong into my databases.cfg which you can find below

Code:

"Databases"
{
        "driver_default"                "mysql"
       
        // 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"                        "default"
                "host"                                “bryyan.com”
                "database"                        "webcon"
                "user"                                "Can't Show"
                "pass"                                "Can't Show"
                //"timeout"                        "0"
                "port"                        "3306"
        }
}

Also, sourcebans is installed on my site and i've added my server IP but it can't seem to connect. I got sourcebans to install on godaddy through locally hosted SQL in the CPanel which is under the same hosting but i can't seem to get the game server to connect to the SQL because it keeps saying unknown host

Anyways, thanks to everyone who read this post. I really appreciate it.

~ <3,
Bryan

Zero_Kuro 12-31-2016 01:03

Re: Sourcebans --> Unknown Database host
 
Not sure about godaddy, but on the host i used for mysql briefly before switching to azure, it had a different host name for the mysql database than the domain I purchased


edit: https://www.godaddy.com/help/viewing...g-accounts-39/

Darthmule 12-31-2016 04:50

Re: Sourcebans --> Unknown Database host
 
try replacing bryyan.com with "bryyan.com"


All times are GMT -4. The time now is 19:22.

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