Error: Package: mysql-community-server-5.7.44-1.el6.x86_64 (mysql57-community)
2023-12-13 05:52:09
安装mysql报错
Error:?Package:?mysql-community-server-5.7.44-1.el6.x86_64?(mysql57-community)
???????????Requires:?libsasl2.so.2()(64bit)
Error: Package: mysql-community-server-5.7.44-1.el6.x86_64 (mysql57-community)
Requires: libsasl2.so.2()(64bit)
You could try using --skip-broken to work around the problem
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
mpi-selector-1.0.3-1.54310.x86_64 is a duplicate with mpi-selector-1.0.3-1.51258.x86_64
mysql80-community-release-el6-10.noarch has installed conflicts mysql57-community-release: mysql57-community-release-el7-11.noarch
perl-DBD-MySQL-4.023-6.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
perl-DBD-MySQL-4.023-6.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
2:postfix-2.10.1-9.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
2:postfix-2.10.1-9.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
修改vim /etc/yum.repos.d/mysql-community.repo 源文件
1、把这行中的6改为7# baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/
2、把gpgcheck=改为0
# Enable to use MySQL 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2023
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
保存后再执行就能正常安装了。
文章来源:https://blog.csdn.net/xiaodaimu00/article/details/134940431
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!