1. 安装报错
安装过程中可能会报以下错误:
出现问题:
error:
Failed dependencies:
libnuma.so.1()(64bit) is needed by mysql-community-server-8.0.13-1.el7.x86_64 libnuma.so.1(libnuma_1.1)(64bit) is needed by mysql-community-server-8.0.13-1.el7.x86_64 libnuma.so.1(libnuma_1.2)(64bit) is needed by mysql-community-server-8.0.13-1.el7.x86_64
解决办法:
yum install numactl
出现问题:
error:
Failed dependencies:
pkgconfig(openssl) is needed by mysql-community-devel-8.0.13-1.el7.x86_64
解决办法:
yum install openssl-devel.x86_64 openssl.x86_64 -y
出现问题:
error:
Failed dependencies:
perl(Data::Dumper) is needed by mysql-community-test-8.0.13-1.el7.x86_64
解决办法:
yum -y install autoconf
出现问题:
error:
Failed dependencies:
perl(JSON) is needed by mysql-community-test-8.0.13-1.el7.x86_64
解决办法:
yum install perl.x86_64 perl-devel.x86_64 -y
yum install perl-JSON.noarch -y
2. Linux安装mysql时出现:Redirecting to /bin/systemctl restart mysql.service解决方式
直接使用如下命令即可:
使用如下命令操作mysql:
systemctl restart mysqld.service
systemctl start mysqld.service
systemctl stop mysqld.service
3. libnuma.so.1()(64bit) is needed
# error: Failed dependencies: \
libnuma.so.1()(64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64 \
libnuma.so.1(libnuma_1.1)(64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64 \
libnuma.so.1(libnuma_1.2)(64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64
解决方法:
$ yum install -y numactl
4. libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-libs-8.0.17-1.el6.x86_64
[root@localhost mysql]# rpm -ivh mysql-community-libs-8.0.17-1.el6.x86_64.rpm
warning: mysql-community-libs-8.0.17-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-libs-8.0.17-1.el6.x86_64
libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-libs-8.0.17-1.el6.x86_64
这里用的是 中标麒麟6.4 ,从网上搜索了libcrypto.so.10的rpm包:
http://rpmfind.net/linux/rpm2html/search.php?query=libcrypto.so.10&submit=Search+...&system=&arch=
① 下载了centos el6 版本的 “openssl-1.0.1e-57.el6.i686.rpm” ;
② 使用“ rpm -ivh openssl-1.0.1e-57.el6.x86_64.rpm” 提示与服务器已有的 openssl-1.0.0-27.el6.ns6.01.x86_64 重复了;
③ 使用命令 “ rpm -ivh openssl-1.0.1e-57.el6.x86_64.rpm --force” 强制安装;
④ 重新执行安装 “rpm -ivh mysql-community-libs-8.0.17-1.el6.x86_64.rpm” ,这一次可以安装成功了;
注意:本文归作者所有,未经作者允许,不得转载