【Centos 7】yum安装mysql5.7
1.获取yum的repowget https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm
2.使用yum的localinstall安装repo
yum localinstall mysql80-community-release-el7-5.noarch.rpm
3.检查是否成功
yum repolist enabled | grep "mysql.*-community.*"
4.查看可安装的版本
yum repolist all | grep mysql
5.设置repo enable版本
sudo yum-config-manager --disable mysql80-community
6.启用mysql57配置
sudo yum-config-manager --enable mysql57-community
7.查看5.7版本是否启用成功
vim /etc/yum.repos.d/mysql-community.repo
8.最后确认5.7是否被启用
yum repolist enabled | grep mysql
9.安装MYSQL 5.7
sudo yum install mysql-community-server
10.设置MYSQL 5.7自启动
sudo systemctl enable mysqld
11.启动MYSQL 5.7
sudo systemctl start mysqld
12.查看MYSQL 5.7服务运行状态
sudo systemctl status mysqld
Felix2022年8月11日 12:01
页:
[1]