I faced this problem on CentOS.
First I try this
sudo service mysql restart
Then error shows up
Redirecting to /bin/systemctl restart mysql.service
Failed to restart mysql.service: Unit not found.
Then I Found this
Command this solve my problem
systemctl start mariadb.service