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

Posted LIUXUN1993728

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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卸载 最后重新安装,完美解决

以上是关于Linux使用rpm方式安装MySQL时异常总结的主要内容,如果未能解决你的问题,请参考以下文章

Linux 卸载MySQL

linux - mysql - 卸载:使用rpm方式安装的mysql

linux下 mysql完全卸载

卸载mysql

MySQL入门:Linux 6 RPM方式安装MySQL 8.0

mysql完全卸载大全