Centos6.8 安装mysql5.7遇到的问题

前些日子买了腾讯云服务器,系统是用centos6.8,在安装mysql时遇到一些问题,做个记录备用。

1. 参照Centos6.8通过yum安装mysql5.7,在以下操作中
yum install mysql-community-server

遇到问题

Error: Package: mysql-community-server-5.6.40-2.el7.x86_64 (mysql56-community)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.40-2.el7.x86_64 (mysql56-community)
           Requires: systemd
Error: Package: mysql-community-libs-5.6.40-2.el7.x86_64 (mysql56-community)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.40-2.el7.x86_64 (mysql56-community)
           Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-client-5.6.40-2.el7.x86_64 (mysql56-community)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
2. 查看glibc版本
[root@VM_0_17_centos /]$ strings /lib64/libc.so.6 |grep GLIBC_
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_PRIVATE

发现没有GLIBC_2.17


3. 开始升级GLIBC_2.17centos升级glibc(升级到 2.17版)
在这里如果出现
configure: error: no acceptable C compiler found in $PATH
说明没有安装 GCC软件套件这里需要
yum install gcc
4. 继续安装mysql5.7
yum install mysql-community-server
如果还是遇到 步骤1 的问题,则执行以下命令
yum clean all
yum makecache
yum update 
再继续执行
yum install mysql-community-server

并按照Centos6.8通过yum安装mysql5.7继续往下操作!

注:以上只是本人在腾讯云用centos6.8系统安装mysql5.7遇到的问题,仅限参考!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值