Failed to restart mysql.service: Unit not found
I am trying to restart MySql on Centos 7 bu using
service restart mysql
But I get the above error
any help is appreciated
1 Reply
rgerke
Linode Staff
Hey there -
We had another user run into this issue before, and they were able to resolve it. There's another post here that gives an answer to this issue:
Failed to start mysqld.service: Unit not found.
Here's a post from Stack Overflow that suggests that you may need to use MariaDB instead of MySQL when using CentOS 7:
In CentOS7, can not start MySQL
That's alluded to in the first link as well. Give this command a shot and see if it gets it to work for you:
systemctl start mariadb.service