mysqld: unrecognized service
I have a CentOS server which runs few web sites. Suddenly all the web sites stopped functioning and when I check that I noticed that MySQL Service is down. I am new for this server related things. I executed following commands on WebMin since I have access for that.
> /etc/rc.d/init.d/mysqld start
bash: /etc/rc.d/init.d/mysqld: No such file or directory
> service mysqld start
mysqld: unrecognized service
It's really strange since it worked today morning even. Can someone help me in fixing this issue.
Thank you.
Solution 1:
This looks like MySQL has been uninstalled
Check that:
rpm -qa | grep mysql
returns something like
mysql-server-5.0.77-4.el5_6.6
mysql-5.0.77-4.el5_6.6
Solution 2:
I had to install mysql and mysql-server on my centos box:
yum install mysql mysql-server
Solution 3:
I ran into a similar issue where MySQL service had gone down after some updates. The solution for me was a permissions issue with mysqld. The limited permissions did not allow mysqld to be executable. Try something like:
$ chmod 755 mysqld