因为搞大数据中的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在网站上查找了一下 从 http://www.cnblogs.com/royfans/p/7243641.html中得到了解决方案
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
在后面加上 --force --nodeps 以上问题解决了,但是又出现了新的问题
[root@hadoop5 Desktop]# rpm -ivh mysql-community-server-5.7.19-1.el7.x86_64.rpm --force --nodepswarning: mysql-community-server-5.7.19-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYPreparing... ########################################### [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卸载 最后重新安装,完美解决