安装mysql报Requires: libc.so.6(GLIBC_2.17)(64bit)

1.问题描述

安装mysql报Requires: libc.so.6(GLIBC_2.17)(64bit)

2.问题详情 

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

 

3.解决方案如下:

 

https://unix.stackexchange.com/questions/280385/can-not-install-mysql-server-on-centos-6-7-32bit-error-need-rpm #cd /etc/yum.repos.d/

#sudo vi mysql-community.repo
找到mysql-56-community
将enable置为0 enable=0

重新安装mysql sudo yum install mysql-server

4.扩展

mysql 安装

1.获取yum安装源

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

2.安装yum安装源
 

 rpm -ivh mysql-community-release-el7-5.noarch.rpm 

 
3.

yum -y install mysql-server   /yum makecache


4.启动mysql  


service mysqld start或者/etc/init.d/mysqld start
     设置开机启动:

  1.  添加开机启动:chkconfig --add mysqld;
  2. 开机启动:chkconfig mysqld on;

     停止 MySQL 服务: 
        service mysqld stop


5.  MySQL 登陆等权限设置

   mysql -u root;
   use mysql ;
   update user set password=password("123456") where user="root";
   flush privileges;


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

脸ル粉嘟嘟

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值