You are not logged in.

Jareth

Trainee

  • "Jareth" started this thread

Posts: 95

Location: Vetschau

Occupation: Soldat

wcf.user.option.userOption53: Ja

  • Send private message

1

Saturday, August 14th 2010, 6:05pm

Server und externe datenbank probleme

ich habe ein Plugin drauf war3source
und brauche dafür datenbank mit externen zugrif habe ich auch alles aber irgendwie geht das nicht r spuckt mir immer fehler raus

meine Config:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"Databases"
{
	"driver_default"		"mysql"
	{
		"driver"			"sqlite"
		"host"				"85.10.205.232"
		"database"			"jareth_server_1"
		"user"				"jareth_user"
		"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"
	}
	"war3"
	{
		"driver"			"sqlite"
		"host"				"85.10.205.232"
		"database"			"jareth_server_1"
		"user"				"jareth_user"
		"pass"				"*****"
	}



Die fehler :

Source code

1
2
3
4
5
6
7
[SM] Detected parse error(s) in file "/home/kd10069/server/v2_27090/orangebox/cstrike/addons/sourcemod/configs/databases.cfg"
[War3Source.smx] [War3Source] ERROR: DBIDB invalid handle, Check SourceMod database config, could not connect. 08/14/2010 - 17:52:46: [war3source_convertDB_useONCE.smx] [War3Source] ERROR: DBIDB invalid handle, Check SourceMod database config, could not connect. 
L 08/14/2010 - 17:52:46: [war3source_convertDB_useONCE.smx] ERRMSG:(Configuration "default" not found)
L 08/14/2010 - 17:52:46: [SM] Native "SQL_Query" reported: Invalid database Handle 0 (error: 4)
L 08/14/2010 - 17:52:46: [SM] Displaying call stack trace for plugin "war3source_convertDB_useONCE.smx":
L 08/14/2010 - 17:52:46: [SM]   [0]  Line 93, war3source_convertDB.sp::next1()
L 08/14/2010 - 17:52:46: [SM]   [1]  Line 79, war3source_convertDB.sp::convert()


könnt ihr mir vlt Helfen

DeaD_EyE

Administrator

Posts: 3,980

Location: Hagen

Occupation: Mechatroniker (didaktische Systeme)

wcf.user.option.userOption53: Nein

  • Send private message

2

Saturday, August 14th 2010, 7:30pm

Re: Server und externe datenbank probleme

Du hast die Dokumentation nicht richtig gelesen:
http://war3source.com/wiki/index.php?title=War3Source:Configuration#Saving_XP_SQLITE">http://war3source.com/wiki/index.php?ti ... _XP_SQLITE</a>

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"Databases"
{
	"driver_default"		"mysql"
	
	"default"
	{
		"driver" "sqlite"
		"host" "localhost"
		"database" "sourcemod"
	}
	
	"storage-local"
	{
		"driver"			"sqlite"
		"database"			"sourcemod-local"
	}

	"clientprefs"
	{
		"driver"			"sqlite"
		"host"				"localhost"
		"database"			"clientprefs-sqlite"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}
}

Jareth

Trainee

  • "Jareth" started this thread

Posts: 95

Location: Vetschau

Occupation: Soldat

wcf.user.option.userOption53: Ja

  • Send private message

3

Saturday, August 14th 2010, 7:34pm

Re: Server und externe datenbank probleme

So verbunden geht das jetzt aber die mod kann sich nicht bverbinden

Source code

1
2
L 08/14/2010 - 19:37:16: [War3Source.smx] [War3Source] ERROR: DBIDB invalid handle, Check SourceMod database config, could not connect. 
L 08/14/2010 - 19:37:16: [War3Source.smx] ERRMSG:(Configuration "default" not found)


Source code

1
2
3
4
5
6
7
8
9
10
"default"      
{
  "driver" "mysql" 
  "host" "78.46.76.120"
  "database" "server1_wa3" 
  "user" "Jareth" 
  "pass" "****" 
  "timeout" "5" 
  "port" "3306"
}

DeaD_EyE

Administrator

Posts: 3,980

Location: Hagen

Occupation: Mechatroniker (didaktische Systeme)

wcf.user.option.userOption53: Nein

  • Send private message

4

Saturday, August 14th 2010, 7:41pm

Re: Server und externe datenbank probleme

Kann ja auch nicht gehen. Wo ist denn bei deiner Config die "default"-Sektion? Lies doch mal was ich gepostet habe. Wenn du MySQL nutzen willst, musst du halt die Angaben unter "default" ändern.

Jareth

Trainee

  • "Jareth" started this thread

Posts: 95

Location: Vetschau

Occupation: Soldat

wcf.user.option.userOption53: Ja

  • Send private message

5

Saturday, August 14th 2010, 7:45pm

Re: Server und externe datenbank probleme

hab es nochmal geändert : geht aber och nicht

Source code

1
2
3
4
5
6
7
8
9
10
"default"      
{
  "driver" "sqlite" 
  "host" "78.46.76.120"
  "database" "server1_wa3" 
  "user" "Jareth" 
  "pass" "**" 
  "timeout" "5" 
  "port" "3306"
}

DeaD_EyE

Administrator

Posts: 3,980

Location: Hagen

Occupation: Mechatroniker (didaktische Systeme)

wcf.user.option.userOption53: Nein

  • Send private message

6

Saturday, August 14th 2010, 7:58pm

Re: Server und externe datenbank probleme

"driver" "mysql"

Wenn das nicht geht, dann probiere mal mein Beispiel, anstatt immer das gegenteil davon zu machen.

MySQL = Datenbank, die Serverbasiert arbeitet
SQLite = Datenbank, die aus einer Datei besteht und auf dem GameServer läuft

Wahrscheinlich lässt die MySQL-Datenbank keine externen Verbindungen zu.
Das mit sqlite hätte klappen können, wenn du localhost genommen hättest. Aber bei so einem Mischmasch kann das nicht gehen.

Jareth

Trainee

  • "Jareth" started this thread

Posts: 95

Location: Vetschau

Occupation: Soldat

wcf.user.option.userOption53: Ja

  • Send private message

7

Saturday, August 14th 2010, 8:12pm

Re: Server und externe datenbank probleme

Okay geht jetzt habe ich noch die fehler verbindung

Source code

1
2
3
4
5
6
7
nAllPluginsLoaded
War3Source_SQLTable war3source table check handling
[War3Source] Dropping war3sourceraces and recreating it (normal)
L 08/14/2010 - 20:06:05: [War3Source.smx] SQLFastQuery DROP TABLE war3sourceraces failed, Error: no such table: war3sourceraces
[War3Source] Table: war3sourceraces didnt exist or failed to drop it
[War3Source] Dropping war3source main table and recreating it!!!
L 08/14/2010 - 20:06:05: [War3Source.smx] SQLFastQuery DROP TABLE war3source failed, Error: no such table: war3source