1. 安装 ali 基础镜像
参考: https://developer.aliyun.com/mirror/centos
2. 安装 清华同方 mysql 8.0 镜像
https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-8.0-community-el8-x86_64/mysql80-community-release-el8-1.noarch.rpm
之前安装时是用的 MySQL的镜像包,所以一直失败
卸载包参考: https://blog.csdn.net/lsa000/article/details/77374351
wget https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-8.0-community-el8-x86_64/mysql80-community-release-el8-1.noarch.rpm