admin管理员组

文章数量:1626246

安装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/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/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

保存后再执行就能正常安装了。

本文标签: CommunityServermysqlErrorPackage