1. 下载mysql的repo源
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
2. 安装 mysql-community-release-el7-5.noarch.rpm 包
sudo yum -ivh mysql-community-release-el7-5.noarch.rpm
3. 安装mysql
sudo yum install mysql-server
4. 启动mysql
service mysqld start
时间: 2024-11-05 20:38:07