Ask Your Question

can't find mysql service

asked 2012-04-13 08:02:14 -0500

Pierre gravatar image

I have a VPS running Fedora 16 (upgraded from 15). Mysql was installed and working until recently.

Now I can't get the mysql service started.

when I try

/etc/init.d/mysqld start

I get the error

/etc/init.d/mysqld: No such file or directory

I have uninstalled and installed mysql several times

yum install mysql mysql-server

but the service still isn't available

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-04-13 08:48:43 -0500

KevinA gravatar image

updated 2012-04-13 08:53:28 -0500

Pierre, The reason you are probably seeing that is mysqld has been converted to systemd. The commands should be below:

systemctl start mysqld.service
systemctl stop mysqld.service
systemctl enable mysqld.service
systemctl disable mysqld.service

If you want to use the service commands they should still work as well:
service mysqld start
service mysqld stop
chkconfig mysqld on
chkconfig mysqld off

The link is a series of articles for Administrators of systems using systemd.
Systemd for Administrators part 1
Systemd for Administrators part 2
Systemd for Administrators part 3

edit flag offensive delete link more

answered 2012-10-18 22:05:38 -0500

hrhk gravatar image

Were you able to resolve the error,Pierre? I am stuck with the same error! Help :(

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-04-13 08:02:14 -0500

Seen: 5,271 times

Last updated: Oct 18 '12