CentOS7安装mysql5.7不成功,解决依赖包之后还是无法安装成功

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7安装mysql5.7不成功,解决依赖包之后还是无法安装成功相关的知识,希望对你有一定的参考价值。

[[email protected] ~]# yum -y installmysql-community-server

。。。。。。。。。。。。。

Error: Package:mysql-community-server-5.7.19-1.el6.x86_64 (mysql57-community)

           Requires: libsasl2.so.2()(64bit)

Error: Package:2:postfix-2.10.1-6.el7.x86_64 (@anaconda)

           Requires:libmysqlclient.so.18()(64bit)

           Removing:1:mariadb-libs-5.5.56-2.el7.x86_64 (@anaconda)

               libmysqlclient.so.18()(64bit)

           Obsoleted By:mysql-community-libs-5.7.19-1.el6.x86_64 (mysql57-community)

              ~libmysqlclient.so.20()(64bit)

Error: Package:2:postfix-2.10.1-6.el7.x86_64 (@anaconda)

           Requires:libmysqlclient.so.18(libmysqlclient_18)(64bit)

           Removing:1:mariadb-libs-5.5.56-2.el7.x86_64 (@anaconda)

              libmysqlclient.so.18(libmysqlclient_18)(64bit)

           Obsoleted By:mysql-community-libs-5.7.19-1.el6.x86_64 (mysql57-community)

               Not found

 You could try using --skip-broken to workaround the problem

 You could try running: rpm -Va --nofiles –nodigest

 

经过一下午的努力centos7安装mysql时遇到以上错误,解决安装包之后还是不能正确安装mysql,原来是自己的mysql源里面的6和我们使用的CentOS7不匹配导致mysql安装不成功,只需要把所以的6改成7即可



以上是关于CentOS7安装mysql5.7不成功,解决依赖包之后还是无法安装成功的主要内容,如果未能解决你的问题,请参考以下文章

阿里云CentOS7安装MySQL5.7成功2022年亲测

centos7.x编译安装mysql5.7.16

centos7 编译安装mysql5.7 bison出错

centos7下rpm安装mysql5.7

centos7下rpm安装mysql5.7

速看!centos7下源码安装mysql5.7