我在 Ubuntu 17.04 上。
长话短说,在与 MariaDB 搏斗了一会儿之后,我遵循了一些关于如何从我的家庭服务器中完全删除 MySQL 和 MariaDB 的有问题的建议。现在我无法重新安装mysql-server
。我在尝试时收到此错误:
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!
所以我检查了服务sudo service --status-all | grep mysql
,果然......
[ - ] mysql
问题是,当我尝试时sudo service mysql status
,我得到
Unit mysql.service could not be found.
我真的很想在不进行全新安装的情况下安装 MySQL 并再次工作!任何帮助表示赞赏。