`
mybwu_com
  • 浏览: 192764 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

CentOS安装mysql*.rpm提示conflicts with file from package的解决办法

 
阅读更多

CentOS 6.5下安装MySql 5.6

解压文件:tar xvf MySQL-5.6.19-1.linux_glibc2.5.x86_64.rpm-bundle.tar

释放出以下文件:

MySQL-embedded-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-devel-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-shared-compat-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-shared-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-client-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-test-5.6.19-1.linux_glibc2.5.x86_64.rpm

如下图:


通过lss查看文件名都是红色的,说明文件的访问权限比较高,我们用命令“chmod 777 ./*”将权限改的低一点,

777应该是最低的权限,相当Windows下everyone可读可写可执行,也就是完全控制。

具体可以看一下:chmod 755和chmod 4755的区别

这里只用到了:

MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-client-5.6.19-1.linux_glibc2.5.x86_64.rpm

使用以下命令安装:

rpm -ivh MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm

错误提示如下:

Preparing...                ########################################### [100%]
	file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/cp852.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/geostd8.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/hp8.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/koi8u.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/latin5.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
	file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
看到“conflicts”,是产生冲突了,文件“/usr/share/mysql/charsets/*”需要MySQL-server-5.6.19-1.linux_glibc2.5.x86_64版本的,而系统已经存在mysql-libs-5.1.71-1.el6.x86_64版本的!

解决办法:

执行以下命令,删除mysql-libs-5.1.71-1.el6.x86_64:

yum -y remove mysql-libs-5.1.71*

再执行以下命令安装MySQL:

rpm -ivh MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm

一切Ok,安装成功了。

分享到:
评论

相关推荐

    解决Centos7安装pdksh-*.rpm冲突问题,并附带解决办法和可以通过的pdksh-5.2.14-37.el5的rpm包

    解决Centos7安装pdksh-*.rpm冲突问题,并附带解决办法和可以通过的pdksh-5.2.14-37.el5的rpm包和compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm

    CentOS7.ntp-4.2.8p15-1.el7.centos.x86_64.rpm.tar

    基于CentOS7编译的,修复ntp-4.2.6漏洞。 ntp-4.2.8p15-1.el7.centos.x86_64.rpm ntp-debuginfo-4.2.8p15-1.el7.centos.x86_64.rpm ntp-perl-4.2.8p15-1.el7.centos.x86_64.rpm ntpstat-4.2.8p15-1.el7.centos....

    yum-3.2.29-40.el6.centos.noarch.rpm和yum-3.2.29-30.el6.noarch.rpm

    在Linux系统中,`yum`(Yellowdog Updater, Modified)是基于RPM包管理的命令行工具,用于安装、更新、卸载和管理RPM软件包。它为用户提供了方便的方式来处理依赖关系,简化了软件包的安装过程。本文将深入探讨`yum`...

    centos安装mysql5.7.docx

    CentOS 7.6 安装 MySQL 5.7 MySQL 是一个开源的关系数据库管理系统,广泛应用于 web 开发中。下面是 CentOS 7.6 安装 MySQL 5.7 的步骤。 安装 MySQL 首先,需要新建文件夹 `/opt/mysql` 并 cd 进去。然后,下载...

    CentOS7下Mysql8.0.20离线rpm安装包

    通常,这些包包括`mysql-community-release-el7-*.noarch.rpm`(这是MySQL的YUM仓库配置文件)和一系列的`.rpm`文件,如`mysql-community-server-*.rpm`、`mysql-community-client-*.rpm`等。确保你已经下载了所有...

    mysql-5.7.29-1.el7.x86_64.rpm-bundle.zip

    - 安装依赖包:`sudo rpm -ivh mysql-community-release-el7-*.noarch.rpm` - 更新软件源:`sudo yum update` - 安装服务器:`sudo yum install mysql-community-server` - 安装客户端:`sudo yum install mysql...

    yum-3.4.3-154.el7.centos.1.noarch.rpm

    yum-3.4.3-154.el7.centos.1.noarch.rpm

    centos7.9.2009误删python2.7整合包

    误删除Centos7.9 2009版本系统可以下载此包我已经将文件全部打包直接解压xshll拖进Linux 下执行一下命令即可 rpm -Uvh --replacepkgs lvm2-python...rpm -Uvh --replacepkgs rpm-python*.rpm yum*.rpm --nodeps --force

    ntp-4.2.6p5-12.el6.centos.2.x86_64.r和ntpdate-4.2.6p5-12.el6.centos.2.x86_64.rpm

    ntp-4.2.6p5-12.el6.centos.2.x86_64.rpm 和 ntpdate-4.2.6p5-12.el6.centos.2.x86_64.rpm 是针对CentOS 6.x或Red Hat 6.x 64位系统的RPM安装包,用于部署和管理网络时间服务。 NTP的主要功能是确保系统时钟的准确...

    pdksh-5.2.14安装冲突解决办法并能成功的rpm

    本文将详细探讨如何解决在CentOS 6.5上安装pdksh-5.2.14-36.el5.rpm时可能遇到的冲突,并提供一个有效的解决方案。 pdksh(Public Domain Korn Shell)是Korn Shell的一个开源实现,它是一种广泛使用的Unix shell,...

    HDP-GPL-2.6.4.0-centos7-rpm.tar.gz

    标题 "HDP-GPL-2.6.4.0-centos7-rpm.tar.gz" 提供的信息表明,这是一个与HDP(Hortonworks Data Platform)相关的开源版本,具体为2.6.4.0版,面向CentOS 7操作系统的RPM(Red Hat Package Manager)格式的软件包。...

    RedHat7安装CentOS7 yum的.rpm文件

    yum-3.4.3-132.el7.centos.0.1.noarch.rpm yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm yum-updateonboot-1.1.31-34.el7.noarch.rpm yum-utils-1.1.31-34.el7....

    xulrunner-31.6.0-2.el7.centos.i686.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    centos7安装Mysql.zip

    本文将深入探讨如何在CentOS 7上安装MySQL,以及如何解决在Windows和Linux环境下安装mysqldb库时可能遇到的问题。 首先,让我们关注标题中的"CentOS 7安装MySQL"。CentOS 7是一个基于Linux的开源操作系统,广泛用于...

    centos安装mysql5.6.docx

    CentOS 6 安装 MySQL 5.6 MySQL 是一个流行的开源关系数据库管理系统,广泛应用于 Web 应用程序中。 CentOS 6 是一个基于 Linux 的操作系统,本文将指导您如何在 CentOS 6 上安装 MySQL 5.6。 关闭 SELinux ...

    Mysql5.7.37-rpm安装包(aarch64平台)

    通过官方源码包重新打包为aarch64平台下的rpm格式,源代码未进行任何修改,在麒麟v10服务器系统上测试通过 文件列表: mysql-community-client-5.7.37-1.ky10.ky10.aarch64.rpm mysql-community-common-5.7.37-1.ky...

    centos安装MySQL5.pdf

    在CentOS操作系统上安装MySQL 5.7是一个涉及多个步骤的过程,下面将详细解释如何进行安装: 首先,你需要访问MySQL的官方网站(https://dev.mysql.com/downloads/mysql/5.7.html)下载MySQL 5.7.36的RPM安装包。如果...

    centos的ntp的arm版本ntp-4.2.6p5-29.el7.centos.2.aarch64.rpm

    ntp-4.2.6p5-29.el7.centos.2.aarch64.rpm ntp-doc-4.2.6p5-29.el7.centos.2.noarch.rpm ntp-perl-4.2.6p5-29.el7.centos.2.noarch.rpm ntpdate-4.2.6p5-29.el7.centos.2.aarch64.rpm

    centos6 安装mysql5.6.x版本

    本教程将详细讲解如何在CentOS 6上安装MySQL 5.6.x版本,并涉及如何自定义安装路径,以满足特定的需求。 1. **准备工作** 在开始安装前,确保系统已经更新到最新状态,运行`yum update`来获取最新的软件包和安全...

Global site tag (gtag.js) - Google Analytics