Linux上安装MySQL时出现不兼容的解决办法:

[root@localhost ~]# rpm -ivh MySQL-server-5.5.24-1.linux2.6.x86_64.rpm 
Preparing...                ########################################### [100%]
        file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/cp852.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/geostd8.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/hp8.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/koi8u.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/latin5.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64

file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64

原因是系统已经安装了其他版本的mysql-libs包导致不兼容。

[root@localhost ~]# yum list | grep mysql                                                                                                                               
mysql-libs.x86_64                    5.1.61-1.el6_2.1          @updates         
apr-util-mysql.x86_64                1.3.9-3.el6_0.1           base             
bacula-director-mysql.x86_64         5.0.0-9.el6               base             
bacula-storage-mysql.x86_64          5.0.0-9.el6               base             
dovecot-mysql.x86_64                 1:2.0.9-2.el6_1.1         base             
freeradius-mysql.x86_64              2.1.10-5.el6              base             
libdbi-dbd-mysql.x86_64              0.8.3-5.1.el6             base             
mod_auth_mysql.x86_64                1:3.0.0-11.el6_0.1        base             
mysql.x86_64                         5.1.61-1.el6_2.1          updates          
mysql-bench.x86_64                   5.1.61-1.el6_2.1          updates          
mysql-connector-java.x86_64          1:5.1.12-2.el6            base             
mysql-connector-odbc.x86_64          5.1.5r1144-7.el6          base             
mysql-devel.i686                     5.1.61-1.el6_2.1          updates          
mysql-devel.x86_64                   5.1.61-1.el6_2.1          updates          
mysql-embedded.i686                  5.1.61-1.el6_2.1          updates          
mysql-embedded.x86_64                5.1.61-1.el6_2.1          updates          
mysql-embedded-devel.i686            5.1.61-1.el6_2.1          updates          
mysql-embedded-devel.x86_64          5.1.61-1.el6_2.1          updates          
mysql-libs.i686                      5.1.61-1.el6_2.1          updates          
mysql-server.x86_64                  5.1.61-1.el6_2.1          updates          
mysql-test.x86_64                    5.1.61-1.el6_2.1          updates          
php-mysql.x86_64                     5.3.3-3.el6_2.8           updates          
qt-mysql.i686                        1:4.6.2-20.el6            base             
qt-mysql.x86_64                      1:4.6.2-20.el6            base             
rsyslog-mysql.x86_64                 4.6.2-12.el6              base

删除mysql-libs

[root@localhost ~]# yum remove mysql-libs

......

[root@localhost ~]# rpm -ivh MySQL-server-5.5.24-1.linux2.6.x86_64.rpm                                                                                                  
Preparing...                ########################################### [100%]
   1:MySQL-server           ########################################### [100%]

如果是

删除mysql-community-common

[root@localhost ~]# yum remove mysql-community-common

安装MySQL时出现不兼容的解决办法conflicts with file from package相关推荐

  1. linux安装mysql不成功怎么处理_Linux上安装MySQL时出现不兼容的解决办法

    Linux上安装MySQL时出现不兼容的解决办法 在linux 上安装mysql rpm的时候,安装不成功 MySQL-client-5.5.36-1.linux2.6.x86_64.rpm MySQ ...

  2. 二次安装mysql时出现的问题及解决

    这是二次安装mysql时碰到的问题,记录下来,希望对后续碰到此类问题的伙伴有个帮助吧. 问题: 卸载mysql重新安装时,在进入MySQL Server Instance Configuration ...

  3. 安装软件时,提示更新设备解决办法

    1.问题描述: 安装软件时提示:若要继续接收应用建议,请立即更新.即使点击"立即更新"完毕后,双击软件安装包,还是会弹出这个提示. 2.问题背景: 我的电脑系统是win10企业版, ...

  4. 学习python的问题-安装Anaconda2时菜单栏没有快捷方式的解决办法

    安装Anaconda2或Anaconda3者时 菜单栏没有快捷方式的解决办法 说说现象 如下图:,相信很多人和我这不一样吧.我第一安装Anaconda2时时有菜单的,谁知道自己神经病,又把它的卸载了, ...

  5. redhat安装pure-ftpd+mysql时出现libmysqlclient错误的解决办法

    redhat as 4 安装pure-ftpd,执行,/configure时使用了--with-mysql参数,出现如下错误: checking whether you already have a ...

  6. 安装MySql出现Error Nr.1045的解决办法

    如图,最后一步出现这个错误框 这是因为上次安装过MySql,其用户数据在卸载的时候没有被删除掉,解决办法如下: 显示隐藏的文件夹,打开C盘,找到下图文件删除之 删除之后再安装一遍MySQL,就可以了 ...

  7. Windows下安装MySQL卡在Starting Server..的解决办法

    Win7下安装MySQL 5.7,Apply Server Configuration处的Starting Server..处卡住时,在C:\ProgramData\MySQL\MySQL Serve ...

  8. 安装更新时发生错误:0x80240037的解决办法

    今天在重新安装Vagrant,因为之前的版本有些问题,所以就下了最新版本的安装,装了并增加了 vagrant box之后,输入vagrant up命令启动虚拟机时, 报错提示:powershell的版 ...

  9. linux ssh Unused,安装openssh-portable时遇到的问题及解决办法

    问题1: configure: error: Your OpenSSL headers do not match your library. Check config.log for details. ...

最新文章

  1. centos 7.0 安装mysql_CentOS 7.0yum安装MySQL
  2. 【网址收藏】hexo博客主题收藏
  3. (码友推荐)2018-07-12 .NET及相关开发资讯速递
  4. 为什么Segment会从微服务退回单体架构?
  5. python画图横轴刻度间隔设置为3个月_Python 天气情况数据分析及可视化
  6. 阿里云不做SaaS、要练好内功被集成,发布SaaS加速器
  7. python logger日志级别_python干货分享:使用logging记录日志信息
  8. HTML5 address元素
  9. 当半个娱乐圈都在吃自嗨锅,方便面去哪儿了?
  10. 90后程序员健康现状:掉头发、油腻、腰椎间盘突出……
  11. R语言将一列分解为多列
  12. mysql 断言,mysql触发器模拟断言
  13. 《定时执行专家》V5.4软件使用手册
  14. 网络visca控制协议_支持网络及串口onvif,visca、pelco-d/p协议多功能控制键盘采购型号...
  15. 算法详解之狄克斯特拉算法
  16. js获取当前月有几周(附带一个小组件)
  17. python修改sheet名称_openpyxl修改sheet名,sheet颜色,删除sheet的方法
  18. 工控攻击,黑客组织GhostSec 称入侵以色列55 家Berghof PLC
  19. 【机器学习】李宏毅——Adversarial Attack(对抗攻击)
  20. 11 Confluent_Kafka权威指南 第十一章:流计算

热门文章

  1. 常用的国外遥感卫星网站
  2. 关于spotlight_on_oracle的配置及操作
  3. 虾图排名第四大的科技公司,你猜是哪家?
  4. 力扣解法汇总1765-地图中的最高点
  5. 已解决 java.sql.SQLException: 列名无效
  6. 关于合成孔径声纳技术一点感想
  7. n个人排名,允许并列名次,共有多少种排名结果?
  8. 软件测试技能图谱|自学测试路线图
  9. VSCode 开启||关闭右侧预览功能
  10. 通胀叙事下 美国难以重现沃尔克时代