PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : MySQL startet nicht



ST
12.04.07, 08:58
Hallo Forum,

gab es in den letzten Tagen eine Änderung bei MySQL? Ich kann mich auch an kein Update erinnern. Gestern lief noch alles und heute startet mein MySQL nicht mehr und ich kann die Fehlermeldung nicht richtig interpretieren.

Setup ist Debian Sarge mit Apache 2 und MySQL Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386). Es läuft ein aktuelles Mediawiki.

:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld...failed.
Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

/var/run/mysqld/ ist leer. Im Syslog steht:

Apr 12 09:19:36 localhost mysqld_safe[2524]: started
Apr 12 09:19:36 localhost mysqld[2528]: 070412 9:19:36 /usr/sbin/mysqld: unknown variable 'old_passwords=true'
Apr 12 09:19:36 localhost mysqld[2528]:
Apr 12 09:19:36 localhost mysqld_safe[2530]: ended
Apr 12 09:19:43 localhost /etc/init.d/mysql[2593]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Apr 12 09:19:43 localhost /etc/init.d/mysql[2593]: ^G/usr/bin/mysqladmin: connect to server at 'localhost' failed
Apr 12 09:19:43 localhost /etc/init.d/mysql[2593]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Apr 12 09:19:43 localhost /etc/init.d/mysql[2593]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Apr 12 09:19:43 localhost /etc/init.d/mysql[2593]:

Wenn ich in der /etc/mysql/my.cnf den Eintrag "old_passwords=true" auskommentiere, bekomme ich die Meldung "/usr/sbin/mysqld: unknown variable 'expire_logs_days=10'" aber es können doch nicht auf einmal die Variablen alle unbekannt sein. Kann sich da jemand einen Reim drauf machen?

Viele Grüße

Stephan

ST
12.04.07, 09:09
Rehi,

ich habe jetzt in der my.cnf folgendes auskommentiert und MySQL startet wieder:

#old_passwords = true

#log_bin = /var/log/mysql/mysql-bin.log

#expire_logs_days = 10
#max_binlog_size = 100M

Wirklich wohl fühle ich mich bei der Sache nicht, da ich nicht weiß warum sich das auf einmal geändert hat und ob das Nachteile mit sich bringt. Weiß da jemand was?

Viele Grüße

Stephan

Olleg
13.04.07, 07:59
Zeig mal deine sources.list.
Nicht, dass nun stable und sarge Pakete vermischt sind. Das wär nicht so schön.