Fedora can't find MySQL service
Fedora has switched to using systemd. There is no mysqld init script any more; instead there is a systemd control file. On Red Hat/Fedora you typically use service mysqld (restart|start|stop)
rather than the actual init scripts and this now warns you of the change.
The service
and chkconfig
commands have been fitted with code to make systemd calls for services that have been switched. You should start getting used to the new systemd way of doing things by using the straight systemctl
command to deal with services such as:
# To see the status of mysqld
$ systemctl status mysqld.service
mysqld.service - MySQL database server
Loaded: loaded (/lib/systemd/system/mysqld.service; disabled)
Active: inactive (dead)
CGroup: name=systemd:/system/mysqld.service
# To start mysqld
$ systemctl start mysqld.service
$ systemctl status mysqld.service
mysqld.service - MySQL database server
Loaded: loaded (/lib/systemd/system/mysqld.service; disabled)
Active: active (running) since Fri, 13 Apr 2012 15:58:16 +0100; 2s ago
Process: 4776 ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 4637 ExecStart=/usr/bin/mysqld_safe --nowatch --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 4622 ExecStartPre=/usr/libexec/mysqld-prepare-db-dir (code=exited, status=0/SUCCESS)
Main PID: 4775 (mysqld)
CGroup: name=systemd:/system/mysqld.service
└ 4775 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql -...
# Enable the service over reboots (which just sets up some symlinks in the relevant dirs).
# Analogous to "chkconfig mysqld on"
$ systemctl enable mysqld.service