I'm on Ubuntu 17.04.
Long story short, after wrestling with MariaDB for a bit, I followed some questionable advice on how to completely remove both MySQL and MariaDB from my home server. Now I'm unable to reinstall mysql-server
. I'm getting this error when I try:
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
So I check for the service with sudo service --status-all | grep mysql
, and sure enough...
[ - ] mysql
Problem is, when I try sudo service mysql status
, I get
Unit mysql.service could not be found.
I'd really like to get MySQL installed and working again without doing a clean install! Any help is appreciated.
ps aux | grep mysql
doesn't show anything. – Mera