美文网首页
Linux安装mysql报错 需要:libsasl2.so.2(

Linux安装mysql报错 需要:libsasl2.so.2(

作者: 樑衛東 | 来源:发表于2019-07-10 11:43 被阅读0次

报错内容

Error: Package: mysql-community-server-5.7.26-1.el6.x86_64 (mysql57-community) Requires: libsasl2.so.2()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

解决办法

修改vim /etc/yum.repos.d/mysql-community.repo 源文件

[mysql57-community]

name=MySQL 5.7 Community Server

## baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/

修改为

baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/

enabled=1

#gpgcheck=1

修改为

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql  

再次安装即可

yum install mysql-community-server

相关文章

网友评论

      本文标题:Linux安装mysql报错 需要:libsasl2.so.2(

      本文链接:https://www.haomeiwen.com/subject/srwckctx.html