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

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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct