Linux使用rpm方式安装MySQL时异常总结

因为搞大数据中的hive时需要安装MySQL作为元数据库,处于没有外网的原因 我在官网

https://dev.mysql.com/downloads/mysql/  下载了安装包(Server和Client) 但是在安装时出现了以下问题

[root@hadoop5 Desktop]# rpm -ivh mysql-community-server-5.7.19-1.el7.x86_64.rpm 
warning: mysql-community-server-5.7.19-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
        libc.so.6(GLIBC_2.14)(64bit) is needed by mysql-community-server-5.7.19-1.el7.x86_64
        libc.so.6(GLIBC_2.15)(64bit) is needed by mysql-community-server-5.7.19-1.el7.x86_64
        libc.so.6(GLIBC_2.16)(64bit) is needed by mysql-community-server-5.7.19-1.el7.x86_64
        libc.so.6(GLIBC_2.17)(64bit) is needed by mysql-community-server-5.7.19-1.el7.x86_64
        libsasl2.so.3()(64bit) is needed by mysql-community-server-5.7.19-1.el7.x86_64
        libstdc++.so.6(GLIBCXX_3.4.15)(64bit) is needed by mysql-community-server-5.7.19-1.el7.x86_64
        mysql-community-client(x86-64) >= 5.7.9 is needed by mysql-community-server-5.7.19-1.el7.x86_64
        mysql-community-common(x86-64) = 5.7.19-1.el7 is needed by mysql-community-server-5.7.19-1.el7.x86_64
        systemd is needed by mysql-community-server-5.7.19-1.el7.x86_64
在网站上查找了一下 从 http://www.cnblogs.com/royfans/p/7243641.html中得到了解决方案

在后面加上 --force --nodeps 以上问题解决了,但是又出现了新的问题

[root@hadoop5 Desktop]# rpm -ivh mysql-community-server-5.7.19-1.el7.x86_64.rpm --force --nodeps
warning: mysql-community-server-5.7.19-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                ########################################### [100%]
   1:mysql-community-server ########################################### [100%]
/usr/bin/my_print_defaults: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/bin/my_print_defaults)
 version `GLIBC_2.14' not found (required by /usr/bin/my_print_defaults)
没办法,其他的都不会,就只会搜索 从 http://www.xuebuyuan.com/642177.html中找到解决方案

然后使用 rpm -qa|grep mysql 查找 使用yum -y remove xxx卸载 最后重新安装,完美解决

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值