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

Database failure


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nerdy97
Member
Join Date: Jul 2013
Location: Sydney, Australia
Old 08-23-2016 , 08:09   Database failure
Reply With Quote #1

I keep getting this error regarding database failure using this plugin and all other plugins that are using databases. Does anyone know any solutions?

Code:
[SourceBans] Loading configs/sourcebans.cfg config file
[SM] Plugin SourceBans reloaded successfully.
rcon from "43.245.163.78:53644": command "sm plugins reload sourcebans"
L 08/23/2016 - 22:08:46: [sourcebans.smx] Database failure: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2). See FAQ: http://www.sourcebans.net/node/20
This is my database.cfg

Code:
"Databases"
{
	"driver_default"		"mysql"
	
	// When specifying "host", you may use an IP address, a hostname, or a socket file path
	
	"default"
    {
        "driver"            "mysql"
        "host"              "localhost"
        "database"          "****"
        "user"              "****"
        "pass"              "****"
        //"timeout"         "0"
        "port"            "3306"
    }
	
	"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"              "localhost"
        "database"          "****"
        "user"              "****"
        "pass"              "****"
        //"timeout"         "0"
        "port"            "3306"
	}
	
	"playtime"
	{
		"driver"				"sqlite"
		"database"				"TimeTracker"
	}


}
Thanks
__________________

Last edited by nerdy97; 08-23-2016 at 08:46.
nerdy97 is offline
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 08-23-2016 , 08:53   Re: Database failure
Reply With Quote #2

Is your gameserver allowed to connect remotely to the SQL server?
Cooky is offline
nerdy97
Member
Join Date: Jul 2013
Location: Sydney, Australia
Old 08-23-2016 , 09:34   Re: Database failure
Reply With Quote #3

Yes, my provider has checked everything and can't seem to find the reason either.
__________________
nerdy97 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-23-2016 , 09:52   Re: Database failure
Reply With Quote #4

Did you search? This is one of the most common SourceMod MySQL configuration problems.
__________________
asherkin is offline
nerdy97
Member
Join Date: Jul 2013
Location: Sydney, Australia
Old 08-23-2016 , 09:56   Re: Database failure
Reply With Quote #5

I have tried changing the localhost name and installing extensions, reinstalling plugins. Nothing seems to work.
__________________
nerdy97 is offline
nerdy97
Member
Join Date: Jul 2013
Location: Sydney, Australia
Old 08-24-2016 , 18:43   Re: Database failure
Reply With Quote #6

Anyone help me here please?
__________________
nerdy97 is offline
nerdy97
Member
Join Date: Jul 2013
Location: Sydney, Australia
Old 08-27-2016 , 23:41   Re: Database failure
Reply With Quote #7

Fixed.
__________________
nerdy97 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:23.


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