Linux使用rpm方式安装MySQL时异常总结
因为搞大数据中的hive时需要安装MySQL作为元数据库,处于没有外网的原因 我在官网
https://dev.mysql.com/downloads/mysql/ 下载了安装包(Server和Client) 但是在安装时出现了以下问题
[shell]
[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
[/shell]
在网站上查找了一下 从http://www.cnblogs.com/royfans/p/7243641.html中得到了解决方案
在后面加上 --force --nodeps 以上问题解决了,但是又出现了新的问题
[shell]
[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)
[/shell]
没办法,其他的都不会,就只会搜索 从http://www.xuebuyuan.com/642177.html中找到解决方案
然后使用 rpm -qa|grep mysql 查找 使用yum -y remove xxx卸载 最后重新安装,完美解决
---------------------
作者:LIUXUN1993728
来源:CSDN
原文:https://blog.csdn.net/u013087513/article/details/77602915
版权声明:本文为博主原创文章,转载请附上博文链接!