CenterOS7中解决No package mysql-server available问题

CenterOS7中解决No package mysql-server available
1.使用yum install -y mysql-server报错如下:

[root@heyong_jd ~]# yum install -y mysql-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No package mysql-server available.
Error: Nothing to do

2.解决方法如下:
[root@heyong_jd ~]#wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
[root@heyong_jd ~]# rpm -ivh mysql-community-release-el7-5.noarch.rpm

3.接着在执行安装

[root@heyong_jd ~]# yum install mysql-server
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
mysql-connectors-community | 2.5 kB 00:00:00
mysql-tools-community | 2.5 kB 00:00:00
mysql56-community | 2.5 kB 00:00:00
(1/3): mysql-connectors-community/x86_64/primary_db | 41 kB 00:00:00
(2/3): mysql-tools-community/x86_64/primary_db | 58 kB 00:00:00
(3/3): mysql56-community/x86_64/primary_db | 226 kB 00:00:01



Installed:
mysql-community-libs.x86_64 0:5.6.44-2.el7 mysql-community-server.x86_64 0:5.6.44-2.el7

Dependency Installed:
mysql-community-client.x86_64 0:5.6.44-2.el7 mysql-community-common.x86_64 0:5.6.44-2.el7 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7
perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7
perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7

Replaced:
mariadb-libs.x86_64 1:5.5.60-1.el7_5

Complete!

成功安装!
------------------要克服生活的焦虑和沮丧,得先学会做自己的主人------------------

原文章:https://www.cnblogs.com/heyongboke/p/11016561.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值