1.配置安裝源mysql
#配置MySQL5.7的安裝源
#https://repo.mysql.com/mysql57-community-release-el7.rpm
#https://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpm
rpm -Uvh https://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpmsql
#安裝MySQL 5.7社區版服務以及客戶端工具
yum --enablerepo=mysql57-community install -y mysql-community-server工具
#配置MySQL8.0的安裝源
#https://repo.mysql.com/mysql80-community-release-el7.rpm
#https://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm
rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpmrouter
rpm -Uvh https://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpmserver
2. 安裝mysql-router:blog
yum install mysql-router -yit