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

Sourcebans --> Unknown Database host


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bananabryan
Junior Member
Join Date: Mar 2016
Old 12-31-2016 , 00:24   Sourcebans --> Unknown Database host
Reply With Quote #1

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 - 1196: [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

Last edited by bananabryan; 12-31-2016 at 01:18.
bananabryan is offline
Zero_Kuro
Junior Member
Join Date: Dec 2015
Old 12-31-2016 , 01:03   Re: Sourcebans --> Unknown Database host
Reply With Quote #2

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/

Last edited by Zero_Kuro; 12-31-2016 at 01:05.
Zero_Kuro is offline
Darthmule
AlliedModders Donor
Join Date: May 2012
Location: Netherlands
Old 12-31-2016 , 04:50   Re: Sourcebans --> Unknown Database host
Reply With Quote #3

try replacing bryyan.com with "bryyan.com"
Darthmule 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 15:24.


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