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


9

我最近通过桌面升级了CentOS系统。错误!

我让MariaDB和phpMyAdmin在运行之前都很好-但升级后它们停止了。

我疯狂地搜索了谷歌,并尝试遵循一些有关MariaDB的教程* MySQL重新安装,直到我来到这里:

http://centosforge.com/node/how-replace-mysql-mariadb-centos-6-includes-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的材料。


rpm -qa | grep openssl
量子

1
您知道这对Fedora总而言之。我说安装mysql-server,安装了maria-db。
凯文·帕克

同样的情况下,分。。我说安装mysql-server,即使从/etc/yum.repo.d/中删除了maria db的响应,您也安装了maria-db
vidur punj

Answers:


7

您的系统上仍然有MariaDB yum存储库。只要您这样做,MariaDB将继续替换MySQL。

要解决此问题,请删除MariaDB存储库。为此,请在目录中找到文件(文件可能命名为mariadb.repo/etc/yum.repos.d。找到文件后,可以将其删除,也可以编辑文件并更改enabled=1enabled=0


谢谢-看起来不错,但是很遗憾,我无法对其进行测试,因为经过了很多麻烦之后,mariadb现在正在运行,系统崩溃了。 ]:open(/ tmp / sess_680f0e76afa349f57e05a29e97fe30efa81cace1,O_RDWR)失败:在第44行的/usr/share/phpmyadmin/index.php中,权限被拒绝(13),当我保存并完成工作后,我将尝试并遵循以下命令删除mariadb并返回mysql。谢谢。
Suma

1

如果必须使用mysql,则需要添加mysql-community存储库sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm,然后可以像平常一样安装MySQLl。


如何首先卸载:yum delete mysql-community *-这也会删除存储库,因此您可以执行上述操作。
JosephK '16

0

在Ubuntu上,您需要删除dbconfig-mysql并安装dbconfig-no-thanks

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.