• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Can't connect to local MySQL server through socket '/var/lib

Hallo

Habe mysql instaliert und als ich ihn starten will, dann kommt folgende Meldung:
Creating MySQL privilege database and starting MySQL...
hostname: Unbekannter Rechner
Neither host '' and 'localhost' could not be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option


Wenn ich phpMyAdmin starte kommt:

MySQL meldet:
#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
 
A

Anonymous

Gast
also ich sag be sowas jetzt nicht mehr viel.... tip: du hast antwort und frage zugleich gepostet....wer lesen kann...

Chip@linux schrieb:
Hallo

Habe mysql instaliert und als ich ihn starten will, dann kommt folgende Meldung:
Creating MySQL privilege database and starting MySQL...
hostname: Unbekannter Rechner
Neither host '' and 'localhost' could not be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option


Wenn ich phpMyAdmin starte kommt:

MySQL meldet:
#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
 
A

Anonymous

Gast
und dein sql problem lässt sich zb so lösen:

find / -name "mysql.sock"
cd /PFAD/ZUM/RICHTIGEN/MYSQL.SOCK
ln -s /var/lib/mysql/mysql.sock mysql.sock
 
Oben