linux – 如何卸载MariaDB并重新安装MySQL? MySQL安装变成了MariaDB安装

前端之家收集整理的这篇文章主要介绍了linux – 如何卸载MariaDB并重新安装MySQL? MySQL安装变成了MariaDB安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我最近通过桌面升级了我的CentOS系统.错误

我有MariaDB,PHPMyAdmin之前工作得很好 – 但升级后他们停了下来.

我疯狂地用Google搜索并尝试关注有关MariaDB * MySQL重新安装的一些教程,直到我找到这个:

http://centosforge.com/node/how-replace-mysql-mariadb-centos-6-including-mysql-uninstall-instructions-and-yum-install

我执行此命令删除所有MysqL

yum remove MysqL-server MysqL-libs MysqL-devel MysqL*

然后尝试重新安装MysqL

如下所示 – 它崩溃的错误如下:

*****************************************************************
[root@localhost ~]# yum install MysqL-server MysqL MysqL-devel
*****************************************************************

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.serverspace.co.uk
 * extras: centos.serverspace.co.uk
 * rpmforge: www.mirrorservice.org
 * updates: mirror.rmg.io
Setting up Install Process
Package MysqL-server is obsoleted by MariaDB-server,trying to install MariaDB-server-5.5.29-1.i686 instead
Package MysqL is obsoleted by MariaDB-server,trying to install MariaDB-server-5.5.29-1.i686 instead
Package MysqL-devel is obsoleted by MariaDB-devel,trying to install MariaDB-devel-5.5.29-1.i686 instead
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-devel.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: MariaDB-common for package: MariaDB-devel
---> Package MariaDB-server.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: libssl.so.10 for package: MariaDB-server
--> Processing Dependency: libcrypto.so.10 for package: MariaDB-server
--> Running transaction check
---> Package MariaDB-common.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: MariaDB-compat for package: MariaDB-common
---> Package MariaDB-server.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: libssl.so.10 for package: MariaDB-server
--> Processing Dependency: libcrypto.so.10 for package: MariaDB-server
--> Running transaction check
---> Package MariaDB-compat.i686 0:5.5.29-1 set to be updated
---> Package MariaDB-server.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: libssl.so.10 for package: MariaDB-server
--> Processing Dependency: libcrypto.so.10 for package: MariaDB-server
--> Finished Dependency Resolution
MariaDB-server-5.5.29-1.i686 from mariadb has depsolving problems
  --> Missing Dependency: libcrypto.so.10 is needed by package MariaDB-server-5.5.29-1.i686 (mariadb)
MariaDB-server-5.5.29-1.i686 from mariadb has depsolving problems
  --> Missing Dependency: libssl.so.10 is needed by package MariaDB-server-5.5.29-1.i686 (mariadb)
Error: Missing Dependency: libcrypto.so.10 is needed by package MariaDB-server-5.5.29-1.i686 (mariadb)
Error: Missing Dependency: libssl.so.10 is needed by package MariaDB-server-5.5.29-1.i686 (mariadb)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

[root@localhost ~]

如果我现在尝试安装libssl.10,我会被要求安装glibc库. 2.17和2.7.
其他讨论已经说要清除它们,因为这会爆炸我的系统.我尝试下载2.17并且它很大 – 需要花费很长时间才能解压缩.

有人可以帮我完全删除MariaDB并安装MysqL – 这样我运行时就不会出现上述错误并推送到MariaDB:

yum install MysqL-server MysqL MysqL-devel

有关如何安装MariaDB的大量材料 – 但到目前为止我没有找到明确解释如何向后退到MysqL的材料.

解决方法

您的系统上仍然有MariaDB yum存储库.只要你这样做,MariaDB将继续取代MysqL.

解决此问题,请删除MariaDB存储库.通过在/etc/yum.repos.d目录中找到文件(可能命名为mariadb.repo)来完成此操作.找到文件后,您可以将其删除,或者您可以编辑文件并将enabled = 1更改为enabled = 0.

原文链接:https://www.f2er.com/linux/401747.html

猜你在找的Linux相关文章