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

标签 mysql azure centos azure-virtual-machine

一直尝试在 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/

相关文章:

python - 如何将 Pycharm 和 git 与 azure 机器学习服务(工作区)集成

amazon-web-services - EC2 自动安装更新

azure - 相当于 Azure.Messaging.ServiceBus SDK 中的 "UserProperties"属性

mysql - 使用 LEFT JOIN 在查询中添加列

mysql - 设计 Rails 中的优化查询

php - LOAD DATA INFILE 期间时间戳字段未正确更新

azure - MaxBufferPoolSize 和 MaxBufferSize?

php - sed 无法编辑 ssl.conf "Permission denied"

mysql - MariaDB 配置更改不生效

mysql - 从MySQL中的表中选择并添加两列相乘的结果