Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

toto1988

New Member
Hallo Community ;)

ich hab mal wieder ein Problem. Und zwar mit meiner Debian 4 Kiste.
Ist ein Root @ Strato.

Nach Update geht überhaupt nichts mehr :(
Installiert ist Apache 2.2, MySQL5 & PHP5

Wenn ich MySQL manuell starten will kommt folgende Meldung.

~# /etc/init.d/mysql start
* /etc/init.d/mysql: ERROR: Using expire_logs_days without log_bin crashes the server. See README.Debian.gz

Wenn ich eine Seite Aufrufen möchte kommt die typische Meldung dass eben MySQL nicht läuft.

~# /etc/init.d/mysql start
* /etc/init.d/mysql: ERROR: Using expire_logs_days without log_bin crashes the server. See README.Debian.gz

Beim Ausführen von Aptitude:

invoke-rc.d: initscript mysql, action "start" failed.
dpkg: Fehler beim Bearbeiten von mysql-server-5.0 (--configure):
Unterprozess post-installation script gab den Fehlerwert 1 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von mysql-server:
mysql-server hängt ab von mysql-server-5.0; aber:
Paket mysql-server-5.0 ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten von mysql-server (--configure):
Abhängigkeitsprobleme - lasse es unkonfiguriert
Fehler traten auf beim Bearbeiten von:
mysql-server-5.0
mysql-server


Daemon.log

Feb 12 11:31:43 h1073700 /etc/init.d/mysql[1567]: ERROR: Using expire_logs_days without log_bin crashes the server. See README.Debian.gz
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: 090212 11:55:15 [ERROR] /usr/sbin/mysqld: unknown option '--skip-federated'
Feb 12 11:55:15 h1073700 mysqld_safe[1899]:
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: Installation of system tables failed!
Feb 12 11:55:15 h1073700 mysqld_safe[1899]:
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: Examine the logs in /var/lib/mysql for more information.
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: You can also try to start the mysqld daemon with:
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: /usr/sbin/mysqld --skip-grant &
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: You can use the command line tool
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: /usr/bin/mysql to connect to the mysql
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: database and look at the grant tables:
Feb 12 11:55:15 h1073700 mysqld_safe[1899]:
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: shell> /usr/bin/mysql -u root mysql
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: mysql> show tables
Feb 12 11:55:15 h1073700 mysqld_safe[1899]:
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: Try 'mysqld --help' if you have problems with paths. Using --log
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: gives you a log in /var/lib/mysql that may be helpful.
Feb 12 11:55:15 h1073700 mysqld_safe[1899]:
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: The latest information about MySQL is available on the web at
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: MySQL :: The world's most popular open source database
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: Please consult the MySQL manual section: 'Problems running mysql_install_db',
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: and the manual section that describes problems on your OS.
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: Another information source is the MySQL email archive.
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: Please check all of the above before mailing us!
Feb 12 11:55:15 h1073700 mysqld_safe[1899]: And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
Feb 12 11:55:15 h1073700 mysqld_safe[1929]: 090212 11:55:15 [ERROR] /usr/sbin/mysqld: unknown option '--skip-federated'
Feb 12 11:55:15 h1073700 mysqld_safe[1929]:
Feb 12 11:55:15 h1073700 mysqld_safe[1937]: 090212 11:55:15 [ERROR] /usr/sbin/mysqld: unknown option '--skip-federated'
Feb 12 11:55:15 h1073700 mysqld_safe[1937]:
Feb 12 11:55:15 h1073700 mysqld_safe[1941]: 090212 11:55:15 [ERROR] /usr/sbin/mysqld: unknown option '--skip-federated'
Feb 12 11:55:15 h1073700 mysqld_safe[1941]:
Feb 12 11:55:15 h1073700 mysqld_safe[1945]: 090212 11:55:15 [ERROR] /usr/sbin/mysqld: unknown option '--skip-federated'
Feb 12 11:55:15 h1073700 mysqld_safe[1945]:

Hoffe ihr kommt mit den INfos ein bisschen weiter und könnt mir helfen ;)
Danke schon mal

toto1988
 
Last edited by a moderator:
Hallo RootForum-Community ;)
Wir sind aber nicht das RootForum. Das ist das RF: RootForum.de • MySQL geht nicht - 2002 : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Using expire_logs_days without log_bin crashes the server
Die Fehlermeldung ist recht eindeutig: In der my.cnf ist expire_logs_days gesetzt aber log_bin nicht. Könnte aber ein Folgefehler aus diesem sein:
mysql-server hängt ab von mysql-server-5.0; aber:
Paket mysql-server-5.0 ist noch nicht konfiguriert.
Auch dies ist recht klar: mysql-server-5.0 konnte oder wurde nicht konfiguriert.
Versuch es doch mit "dpkg-reconfigure mysql-server-5.0".

/usr/sbin/mysqld: unknown option '--skip-federated'
Das könnte dann natürlich auch ein Folgefehler sein.

huschi.
 
Soorry Sorry ;)
Aber wollte nicht alles neu schreiben und habs dann übersehen ;)
Aber immerhin bist du der, der die erste Hilfe angeboten hat :)

So nun zurück zum eigentlichen Thema!

Ich glaub er hat mir zuvor nicht richtig installiert.
Den der Fehler liegt wohl wo anders.
Ausgabe bei z.B. Aptitude install mysql-server mysql-client (common)

Egal was ich eingebe

Preconfiguring packages ...
dpkg: nicht behebbarer fataler Fehler, Abbruch:
syntax error: unknown user `cyrus' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
Ein Paket konnte nicht installiert werden. Versuche zu lösen:

:( Regelmäßig macjh ich das update und jetzt zerschieß ich mir das ganze System. :(

Bitte nicht der Spruch "Never change a running system" ich weis ich weis ;)

Danke
toto1988
 
Brauchst dich nicht wiederholen hab den Befehl bereits ausgeführt gehabt. ;)

Folgende Ausgabe:

/usr/sbin/dpkg-reconfigure: mysql-server-5.0 is broken or not fully installed

Preconfiguring packages ...
E: Sub-process /usr/bin/dpkg returned an error code (2)
Ein Paket konnte nicht installiert werden. Versuche zu lösen:
Drücken Sie zum Fortsetzen die Eingabetaste.

Egal was ich in Aptitude -f mache........
 
Back
Top