Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

How do I add things to database.cfg #134

Open
r34p3r88 opened this issue Dec 2, 2019 · 1 comment
Open

How do I add things to database.cfg #134

r34p3r88 opened this issue Dec 2, 2019 · 1 comment

Comments

@r34p3r88
Copy link

r34p3r88 commented Dec 2, 2019

My server won't launch after I tried to change database.cfg

@IAMNUMBERTWO
Copy link

IAMNUMBERTWO commented Dec 7, 2019

What did you change?

Try adding a block, so your entire file looks like this:

"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"
	}
	
    "surftimer"
    {
       "driver"            "mysql"
       "host"              "HOSTLOCATION" // IF ON SAME SERVER: 127.0.0.1
       "database"          "DATABASENAME"
       "user"              "USER"
       "pass"              "YOURPASS"
	   "port"				"PORT" // DEFAULT IS 3306
    }
}

The last block has to be added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants