1、下载mysql的repo源
[[email protected] ~]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
2、安装mysql-community-release-el7-5.noarch.rpm包
[[email protected] ~]# rpm -ivh mysql-community-release-el7-5.noarch.rpm
3、查看安装的MySQ源
[[email protected] ~]# ls -1 /etc/yum.repos.d/mysql-community* /etc/yum.repos.d/mysql-community.repo /etc/yum.repos.d/mysql-community-source.repo
会获得两个mysql的yum repo源:/etc/yum.repos.d/mysql-community.repo,/etc/yum.repos.d/mysql-community-source.repo。
4、安装
yum install mysql-server
原文地址:https://www.cnblogs.com/weidaijie/p/9574364.html
时间: 2024-10-15 08:13:45