rpm包下载
其中下载MySQL官网的仓库文件,根据服务器情况选择的Red Hat Enterprise Linux 8 / Oracle Linux 8 (Architecture Independent), RPM Package
下载地址改为wget http://repo.mysql.com/mysql80-community-release-el8-5.noarch.rpm
再执行yum localinstall mysql80-community-release-el8-5.noarch.rpm
验证仓库是否添加成功
[root@VM-4-17-opencloudos tmp]# yum repolist enabled | grep "mysql.*-community.*"
mysql-connectors-community MySQL Connectors Community
mysql-tools-community MySQL Tools Community
mysql80-community MySQL 8.0 Community Server
执行处执行对象修改
rpm -qi mysql-community-server-8.0.33-1.el8.x86_64