Debian makineme apt ile mysql kurdum.
İki hafta sorunsuz çalıştı. Fakat makineyi kapatıp
açtıktan sonra çalışmaz oldu. Makineyi resetlediğim için mi oldu tam emin değilim ama
daha önce sorun yoktu.
/etc/init.d/mysql start
komutunu çalıştırınca şu hata mesajını veriyor.
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!

 
Syslog  dosyasında ise şu çıktılar var:

Aug 19 16:07:03 localhost mysqld_safe[17943]: started
Aug 19 16:07:03 localhost mysqld[17947]: 050819 16:07:03 /usr/sbin/mysqld: unknown variable 'old_passwords=1'
Aug 19 16:07:03 localhost mysqld[17947]:
Aug 19 16:07:03 localhost mysqld_safe[17949]: ended
Aug 19 16:07:09 localhost /etc/init.d/mysql[18012]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Aug 19 16:07:09 localhost /etc/init.d/mysql[18012]: ^G/usr/bin/mysqladmin: connect to server at 'localhost' failed
Aug 19 16:07:09 localhost /etc/init.d/mysql[18012]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Aug 19 16:07:09 localhost /etc/init.d/mysql[18012]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

Apt ile mysql-server paketini tekrar kurdum fakat sonuç değişmedi. Ne yapmalıyım?

İyi çalışmalar.

Cevap