Error yang muncul sewaktu menginstall mysql di Debian 7
Setting up mysql-server-5.5 (5.5.40-0+wheezy1) ... debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.) debconf: falling back to frontend: Readline [ ok ] Stopping MySQL database server: mysqld. /var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found ATTENTION: An error has occured. More info is in the syslog! /var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found dpkg: error processing mysql-server-5.5 (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.5 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)
cara mengatasinya, setting locale dengan perintah
dpkg-reconfigure locales
lalu install bsdutils (disini terdapat aplikasi logger
tersebut)
apt-get install bsdutils
Bila error diatas masih tetap muncul, kemungkinan besar folder mysql (/var/lib/mysql) korup, hapus folder mysql, tetapi ingat untuk membackup data-datanya terlebih dahulu
#backup cp -r /var/lib/mysql /tmp/ #hapus rm -fr /var/lib/mysql
lalu install mysql dengan
apt-get install mysql-server -y
Bila anda memiliki backup dari MySQL tinggal di restore, bila tidak harus di pilah pilah dari folder /tmp/mysql
secara manual
Apakah ini Berhasil Min ? Soalnya saya mengalami hal serupa, tapi saya udah coba pakai solusi diatas, alhasil muncul error yang sama. kira2 solusinya gimana lagi ya min ?
berhasil, emang error yang muncul apa?