gpt4 book ai didi

mysql - 如何在Azure VM CentOS上安装mysql 5.5

转载 作者:行者123 更新时间:2023-11-29 13:37:35 25 4
gpt4 key购买 nike

一直尝试在 Windows Azure 上的 OpenLogic Centos VM 上安装 MySQL 5.5,但始终失败并提示依赖失败。

尝试使用 remi repo,但没有成功。

希望获得在 Windows Azure 上的 CentOS VM 上安装 MySQL 5.5 的建议

命令运行 -

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

yum --enablerepo=remi,remi-test install mysql mysql-server

输出 -

Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.x86_64 0:5.5.33-1.el6.remi will be installed
--> Processing Dependency: real-mysql-libs(x86-64) = 5.5.33-1.el6.remi for package: mysql-5.5.33-1.el6.remi.x86_64
---> Package mysql-server.x86_64 0:5.5.33-1.el6.remi will be installed
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.5.33-1.el6.remi.x86_64
--> Processing Dependency: libz.so.1(ZLIB_1.2.0)(64bit) for package: mysql-server-5.5.33-1.el6.remi.x86_64
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.1.67-1.el6_3 will be updated
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
---> Package mysql-libs.x86_64 0:5.5.33-1.el6.remi will be an update
---> Package mysql-server.x86_64 0:5.5.33-1.el6.remi will be installed
--> Processing Dependency: libz.so.1(ZLIB_1.2.0)(64bit) for package: mysql-server-5.5.33-1.el6.remi.x86_64
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Running transaction check
---> Package compat-mysql51.x86_64 0:5.1.54-1.el6.remi will be installed
---> Package mysql-server.x86_64 0:5.5.33-1.el6.remi will be installed
--> Processing Dependency: libz.so.1(ZLIB_1.2.0)(64bit) for package: mysql-server-5.5.33-1.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-server-5.5.33-1.el6.remi.x86_64 (remi)
Requires: libz.so.1(ZLIB_1.2.0)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

最佳答案

要让它运行,您需要一些依赖项。

Remi 对 CentOS 6 和 Red Hat (RHEL) 6 的依赖

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

安装MySQL服务器

yum --enablerepo=remi,remi-test install mysql mysql-server

查看Update MySQL version from 5.1 to 5.5 in CentOS 6.2也是如此。

关于mysql - 如何在Azure VM CentOS上安装mysql 5.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18550086/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com