service mysqld restart: no file or directory
January 5th, 2010
rpm -qa | grep mysql (find out the version of mysql you got)Somehow managed to break mysqld file (wow! applauses).
Errors received from ‘mysql -u <username> -p <pass>’:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
On using ‘rpm -e mysql-server’ was getting:
error reading information on service mysqld: No such file or directory
error: %preun(mysql-server-3.23.58-4) scriptlet failed, exit status 1
The solution ended up in:
- rpm -qa | grep mysql (find out the version of mysql you got)
- Get the right version of you RPM
- rpm -Uhv –force mysql-server-xx.x.rpm
- service mysqld restart