xeoncross / lowendscript

Bash scripts to set up/bootstrap low end virtual servers
326 stars 100 forks source link

MYSQL doesn't start... ERROR 2002 (HY000) #34

Open windswept321 opened 9 years ago

windswept321 commented 9 years ago

Hi, I've had, I think, the same issue in the past when I have tried to use this script with Debian 7. Now I have it in a fresh Debian 6 KVM vps. MYSQL doesn't start and cannot start. When I attempt to start it manually I receive this error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) purging mysql-server and mysql-client and reinstalling via the script gives the same problem.

yylzcom commented 9 years ago

/var/lib/dpkg/info/mysql-server-5.6.postinst: line 111: logger: command not found /var/lib/dpkg/info/mysql-server-5.6.postinst: line 189: logger: command not found dpkg: error processing mysql-server-5.6 (--configure): subprocess installed post-installation script returned error exit status 127 Setting up libhtml-template-perl (2.91-1) ... Setting up mysql-common-5.6 (5.6.21-1~dotdeb.1) ... dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.6; however: Package mysql-server-5.6 is not configured yet.

dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.6 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1) mysql-server installed for mysqld mysql-client already installed start: Job failed to start invoke-rc.d: initscript mysql, action "start" failed. 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!

amicheals commented 9 years ago

Did someone figure this out? I'm getting the same error

webmarkhq commented 9 years ago

logger: command not found

This can be fixed by reinstalling bsdutils

apt-get --reinstall install bsdutils

Source