Anzeige:
Ergebnis 1 bis 2 von 2

Thema: mysql will einfach nicht starten

  1. #1
    flanders
    Gast

    mysql will einfach nicht starten

    hi
    ich wollte gestern meinen privaten "webserver" mit mysql aufrüsten, die tabellen hat er schon in /var/lib/mysql erstellt. Aber wenn ich das root password setzten will oder mysql mit safe_mysqld & starten will, kommt folgendes:

    root@schulze:~# mysqladmin -u root -p password
    Enter password:
    mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (111)'
    Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
    root@schulze:~#

    was soll ich machen damit er das pass schluckt und das er startet????
    bitte helft mir denn ich habe schon in den manuals gelesen und nichts gefunden, oder ich bin einfach zu blöd?!?!
    Ich benutze Slackware 8.0 und mysql war schon installiert.


    ok vielen dank im voraus!!

  2. #2
    Registrierter Benutzer
    Registriert seit
    10.05.2001
    Ort
    A-1210 Wien
    Beiträge
    20
    Läuft der mysqld denn? 'ps ax | grep mysql'
    Ist die Datei mysql.sock vorhanden? 'ls /var/run/mysql/mysql.sock'

    Manchmal liegt die Antwort so nah: Einfach mal eine Suchmaschine bemühen (in meinem Fall jetzt http://www.google.de) und als Suchbegriff mysql.sock eingeben. Dann landet man beim 5. Eintrag hier:

    http://www.e-gineer.com/instructions...on-linux.phtml

    Ich zitiere:

    "[...]For all of you who get this error "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'. Check that mysqld is running and that the socket: '/tmp/mysql.sock exists"..... I would try this, it worked for me, run these commands updatedb; locate mysql.sock it should show you something like /var/lib/mysql/mysql.sock now type MYSQL_UNIX_PORT=/var/lib/mysql/mysql.sock this tells mysql to use the mysql.sock in the /var/lib/mysql directory by default its checking for /tmp/mysqld.sock now type export MYSQL_UNIX_PORT then go back to your mysql directory and do bin/safe_mysqld & and finally you should be able to bin/mysqladmin ping showing you mysqld is alive note: when you reboot your machine this setting will be lost, to fix this do this edit /etc/profile and add the line MYSQL_UNIX_PORT=/var/lib/mysql/mysql.sock somewhere near the top then look down to the end of this file and you'll probably see a line that starts something like export PATH USER blah blah change this so it it has MYSQL_UNIX_PORT on the end, so it may look like this now export PATH USER MYSQL_UNIX_PORT now when you restart and load mysql is should work fine hope this helps Gareth[...]"
    "Never surf faster, than your guardian penguin can fly!"

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •