Lnuix 安装MYSQL -》错误信息-》error: Failed dependencies:
libsasl2.so.2()(64bit) is needed by mysql-community-server-5.7.21-1.el6.x86_64

解决方法libsasl2.so.2()(64bit):

编辑文件(不管有没有直接编辑保存)(自测过)

  1. 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=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

2.yum install mysql-community-server #再次安装mysql
3.systemctl start mysqld #启动mysql
4.systemctl status mysqld #查看mysql启动状态

解决方法libnuma.so.1:

yum install numactl
或者
yum install libnuma

Logo

更多推荐