PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mysql server startet nicht mehr



lluser
03.07.05, 12:01
Hi,
Während ich den xmail server deinstallieren wollte, zeigte apt mir an er lösche mysql-server. Dies hab ich mit [strg]+[c] abgebrochen. Seitdem funktionierte der mysql serevr net mehr. Also hab ich ihn neu installiert, und wenn ich ihn nun starten will kommt diese Meldung:


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/mysq
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock'

In der /var/log/syslog steht:


Jul 3 09:56:27 localhost /etc/init.d/mysql[30619]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jul 3 09:56:27 localhost /etc/init.d/mysql[30619]:
Jul 3 09:56:40 localhost mysqld_safe[30674]: started
Jul 3 09:56:40 localhost mysqld_safe[30684]: ended
Jul 3 09:56:46 localhost /etc/init.d/mysql[30747]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Jul 3 09:56:46 localhost /etc/init.d/mysql[30747]: ^G/usr/bin/mysqladmin: connect to server at 'localhost' failed
Jul 3 09:56:46 localhost /etc/init.d/mysql[30747]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Jul 3 09:56:46 localhost /etc/init.d/mysql[30747]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jul 3 09:56:46 localhost /etc/init.d/mysql[30747]:
Jul 3 10:00:01 localhost /USR/SBIN/CRON[30771]: (smmsp) CMD (test -x /usr/share/sendmail/sendmail && /usr/share/sendmail/sendmail cron-msp)

Was kann ich tun?
Bitte helft mir.
Ich nutze Debian Sarge auf kernel 2.6.8-2-386.
THX

lluser

marce
03.07.05, 12:45
welchen Inhalt und welche Rechte hat denn das Verzeichnis /var/run/mysqld?

lluser
03.07.05, 13:03
Das Verzeichniss hat keinen Inhalt:


# ls -l /var/run/mysqld -dl
drwxrwxrwx 2 mysql mysql 4096 Jul 3 13:02 /var/run/mysqld


Hoffentlich hilfts.

THX

lluser

Roger Wilco
03.07.05, 16:37
Das Verzeichniss hat keinen Inhalt
Also wenn du das nur auf Grund des unten geposteten Kommandos denkst, solltest du ls vielleicht nochmal ohne den Parameter -d aufrufen. :ugly:

Starte mysqld mal von Hand mit aktiviertem Debug-Log.