WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   mysql: Can't connect to local MySQL server (http://www.wcm.at/forum/showthread.php?t=211214)

SerenDwyn 03.03.2007 12:05

mysql: Can't connect to local MySQL server
 
Ich hab da ein Problem mit mysql unter opensuse 10.2. (absolute Standardinstallation, installierte Pakete: mysql, mysql-client, mysql-shared) Ich wollte mal beginnen und eine Datenbank erstellen, bekomm aber immer folgendes:
Zitat:

mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
mysqld scheint zu laufen:
Zitat:

ps xa | grep mysqld
7439 pts/1 S+ 0:00 grep mysqld
Auszug aus der /etc/my.conf:
Zitat:

# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /var/lib/mysql/mysql.sock
Zitat:

ls -a /var/lib/mysql
. .. .protected .run-mysql_upgrade .tmp
Die Firewall ist auch nicht schuld. Die mysql.sock Datei gibts nicht. Wenn ich eine leere Datei anlege hilfts trotzdem nix.

Wo happerts da bei mir? Selbst ein Kommando wie mysqladmin version liefert obigen Fehler.

Danke!

delphirocks 04.03.2007 11:01

Liefert dir der grep nicht genau die Zeile zurück, die du gerade eingegeben hast?

Der Daemon selbst scheint nicht zu laufen, oder?

SerenDwyn 04.03.2007 17:15

Ja, hab das ps Kommando total falsch interpretiert. openSuse startet beim Booten mysqld nicht automatisch. Wie auch immer, ein /etc/init.d/mysql start hat das Problem aus der Welt geschafft :-)


Alle Zeitangaben in WEZ +2. Es ist jetzt 04:08 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag