linux安装mysql与已有文件冲突

错误提示:

file /usr/share/mysql/charsets/README frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/czech/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/danish/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/dutch/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/english/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/estonian/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/french/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/german/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/greek/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/hungarian/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/italian/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/japanese/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/korean/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/norwegian-ny/errmsg.sysfrom install of MySQL-server-5.6.34-1.el7.x86_64 conflicts withfile from packagemariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/norwegian/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/polish/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/portuguese/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/romanian/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/russian/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/serbian/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/slovak/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/spanish/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/swedish/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/ukrainian/errmsg.sys frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/Index.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/armscii8.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/ascii.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/cp1250.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/cp1251.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/cp1256.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/cp1257.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/cp850.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/cp852.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/cp866.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/dec8.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/geostd8.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/greek.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/hebrew.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/hp8.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/keybcs2.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/koi8r.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/koi8u.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/latin1.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/latin2.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/latin5.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/latin7.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/macce.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/macroman.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

       file /usr/share/mysql/charsets/swe7.xml frominstall of MySQL-server-5.6.34-1.el7.x86_64 conflicts with filefrom package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

错误原因:

安装的mysqllib库和mariadb的库包冲突了,检查下mariadb的组件

[root@localhost mysql5.6.34]# rpm -qa |grepmariadb

mariadb-libs-5.5.44-2.el7.centos.x86_64


删除冲突组件

[root@localhost mysql5.6.34]# rpm -emariadb-libs-5.5.44-2.el7.centos.x86_64

error: Failed dependencies:

       libmysqlclient.so.18()(64bit) is needed by(installed) postfix-2:2.10.1-6.el7.x86_64

       libmysqlclient.so.18(libmysqlclient_18)(64bit)is needed by (installed) postfix-2:2.10.1-6.el7.x86_64


有依赖,强制删除

[root@localhost mysql5.6.34]# rpm -emariadb-libs-5.5.44-2.el7.centos.x86_64 --nodeps

重新安装mysql

[root@localhost mysql5.6.34]# rpm -ivhMySQL-server-5.6.34-1.el7.x86_64.rpm

你可能感兴趣的:(linux,mysql,环境配置)