You are not logged in.

Dear visitor, welcome to sourceserver.info. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Typhus

Beginner

  • "Typhus" started this thread

Posts: 21

Location: Hessen

Occupation: Fachabiturient Informatik

wcf.user.option.userOption53: Ja

  • Send private message

1

Friday, March 7th 2014, 2:07pm

Alongub Store Setup Datenbank Probleme

Moinmoin ihr alle,

Ich habe versucht folgendes Sourcemod Plugin zu installieren:

https://forums.alliedmods.net/showthread…207157?t=207157

Es läuft allerdings bekomme ich es nicht hin das es Verbindung zur lokalen MySQL Datenbank aufnimmt.

Ich habe kein PHPmyAdmin installiert und mache alles auf Ubuntu über die Query Konsole.

Errorlog:

Source code

1
2
3
4
5
6
7
L 03/07/2014 - 12:16:39: [store/store-logging.smx] Connection to SQL database has failed, Reason: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 03/07/2014 - 12:16:39: [store/store-logging.smx] Connection to SQL database has failed, Reason: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 03/07/2014 - 12:16:39: [store/store-logging.smx] Connection to SQL database has failed, Reason: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 03/07/2014 - 12:16:39: [store/store-logging.smx] Connection to SQL database has failed, Reason: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 03/07/2014 - 12:16:39: [store/store-logging.smx] Connection to SQL database has failed, Reason: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 03/07/2014 - 12:16:39: [SM] Plugin encountered error 25: Call was aborted
L 03/07/2014 - 12:16:39: [SM] Native "SetFailState" reported: PLUGIN STOPPED - Reason: reconnect counter reached max - PLUGIN STOPPED


Ich habe schon alles mögliche versucht.

Datenbank steht. Ist installiert, Die Tabellen sind eingerichtet und meine databases.cfg sieht so aus:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
"Databases"
{
[Andere Default Einstellungen]
	"store"
	{
		"driver"        "mysql"
		"host"          "localhost"
		"database"      "cssstore"
		"user"          "root"
		"pass"          "xxxxxxxxx"
	}	
}


Hat jemand ne simple Lösung. Die zahlreichen Suchmaschinen Lösungen haben mich nicht weiter gebracht. Und da ich nicht sonderlich spezialisiert auf solcherlei Probleme bin, gehen mir langsam die Ideen aus.

Danke für jede Hilfe und eine Entschuldigung an die ganze Community für die vielen Hilfe Threads in den letzten Tagen.

Greetz
Typhus

Bara

Professional

Posts: 834

wcf.user.option.userOption53: Ja

  • Send private message

2

Friday, March 7th 2014, 2:15pm

Wenn du danach suchst:

Quoted

Connection to SQL database has failed, Reason: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
.. gleich das 1. Ergebnis ein Treffer... :thumbdown:

Typhus

Beginner

  • "Typhus" started this thread

Posts: 21

Location: Hessen

Occupation: Fachabiturient Informatik

wcf.user.option.userOption53: Ja

  • Send private message

3

Friday, March 7th 2014, 2:24pm

Wenn du danach suchst:

Zitat
Connection to SQL database has failed, Reason: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

.. gleich das 1. Ergebnis ein Treffer... :thumbdown:

Wie ich bereits anmerkte haben mir weder die Lösungen in dem Foreneintrag noch die nachfolgenden 20 Treffer geholfen ...

Bara

Professional

Posts: 834

wcf.user.option.userOption53: Ja

  • Send private message

4

Friday, March 7th 2014, 3:09pm

Ich nehme eine Lösung vom 1. Ergebnis...
https://forums.alliedmods.net/showpost.p…045&postcount=9

führe das als 'root'-User aus und restarte dein CSS Server.

This post has been edited 1 times, last edit by "Bara" (Mar 7th 2014, 11:09pm)


Canc3lL0g0ut

Professional

Posts: 881

Location: L.E.

Occupation: KiN im Betriebsdienst

wcf.user.option.userOption53: Nein

  • Send private message

5

Friday, March 7th 2014, 9:42pm

Er muss nicht mal restarten, den wenn er den ganzen Server neu startet fängt das Problem wieder von vorne an. ;)

Deswegen hab ich für die HP nen extra Server laufen ... :-D

@ Typhus:

Selbst hier im Forum ist dieses Problem schon mehrmals behandelt worden:

Hier mal der Überlick :) : http://sourceserver.info/index.php?form=…mp%2Fmysql.sock
24/7 Teamspeak³ Server:


Linux is like a wigwam → No windows. No gates. Apache inside.

1. Frage des Admin: was wurde vorher verändert?
2. Antwort des Users: nichts
3. Frage des Admin: was wurde verändert, bevor NICHTS verändert wurde?

Ene mene muh gebasht wirst du,
ene mene miste headOr durch die Kiste,
ene mene meck kaum siehste mich schon fliegste weg :D

Bara

Professional

Posts: 834

wcf.user.option.userOption53: Ja

  • Send private message

6

Friday, March 7th 2014, 11:08pm

Er muss nicht mal restarten, den wenn er den ganzen Server neu startet fängt das Problem wieder von vorne an. ;)

Selbst wenn er Root restarted wäre cron eine einfache Lösung.
Außerdem war nicht Root Restart gemeint sondern Restart vom CSS Server. :rolleyes:

Typhus

Beginner

  • "Typhus" started this thread

Posts: 21

Location: Hessen

Occupation: Fachabiturient Informatik

wcf.user.option.userOption53: Ja

  • Send private message

7

Saturday, March 8th 2014, 10:47am

Hallo,

Leider haben mich eure Lösungsansätze nicht weiter gebracht. Ich habe mitlerweile das Problem selbst gefunden. Es war eine sehr ungünstig gewählte Einstellung in den iptables. Einmal allow all und jetzt geht es. Allerdings das zugehörige Webpanel schon 4 mal installiert und alles eingestellt. Allerdings bekomme ich jetzt einfach nur ne leere Seite. Keine Errorlogs nix.

- PHPVERSION
- Shop Seite auf Apache
- Shop Webpanel Install Guide (Alles Haargenau beachtet)

Ich bin mir nichtmal sicher ob es ein Datenbank Problem ist, denn das Store Plugin selbst funktioniert ja auch und nutzt selbe Datenbank und selben Zugang.

Greetz
Typhus

Typhus

Beginner

  • "Typhus" started this thread

Posts: 21

Location: Hessen

Occupation: Fachabiturient Informatik

wcf.user.option.userOption53: Ja

  • Send private message

8

Monday, March 10th 2014, 12:20pm

UPDATE:

Source code

1
2
3
<?php
$link = mysql_connect("localhost","root","xxxxxxx") or die(mysql_error());
?>


Spuckt auch nur eine weiße Seite aus. Es scheint als würde die Verbindung zu MySQL bestehen und deshalb kommt keine Fehlermeldung. Allerdings auch wenn ich das falschen Passwort und Nutzer Daten eingebe passiert nichts.

Die my.cnf habe ich auf

Source code

1
bind-address = 0.0.0.0
gestellt und allen Nutzern den Zugriff von jedem Host aus erlaubt.

Trotzdem bekomme ich keine Verbindung zur Datenbank.

Keiner eine Idee?

Typhus

Beginner

  • "Typhus" started this thread

Posts: 21

Location: Hessen

Occupation: Fachabiturient Informatik

wcf.user.option.userOption53: Ja

  • Send private message

9

Tuesday, March 11th 2014, 11:03am

Lösung Problem "Weiße Seite bei Store Alpha Webpanel"

Folgende Linux Befehle (Beispiel Ubuntu) haben mein "Weiße Seite" Problem gelöst:

Source code

1
2
3
4
apt-get update
apt-get upgrade
apt-get install php5-mysql
sudo /etc/init.d/apache2 restart