Centos 7-服务器崩溃后无法卸载MariaDB-Server

时间:2018-10-23 15:02:48

标签: mysql mariadb centos7

我正在尝试在Centos 7上卸载mariadb-server并重新安装它,这完全出错了,服务器无法响应。实际上,这实际上是最近在另一台服务器上发生的,但是在这台服务器上,由于事情没有响应,导致某些事情出错了并且mariadb无法卸载。

这是yum删除mariadb-server之后的错误:

Remove  1 Package

Installed size: 465 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
error reading information on service mysql: No such file or directory
error: %preun(MariaDB-server-10.2.14-1.el7.centos.x86_64) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package MariaDB-server-10.2.14-1.el7.centos.x86_64
  Verifying  : MariaDB-server-10.2.14-1.el7.centos.x86_64                                                            1/1 

Failed:
  MariaDB-server.x86_64 0:10.2.14-1.el7.centos                                                                           

Complete!

我不能只运行yum install mariadb-server,因为它说已经安装了。

Package 1:mariadb-server-5.5.60-1.el7_5.x86_64 is obsoleted by MariaDB-server-10.2.14-1.el7.centos.x86_64 which is already installed

我也无法启动它:

systemctl start mariadb
Failed to start mariadb.service: Unit not found.

这里的东西完全搞砸了,无法卸载,安装或其他任何东西

0 个答案:

没有答案