一、在官网下载mysql源
[root@zabbix-server ~]# wget https://dev.mysql.com/get/mysql80-community-release-el8-5.noarch.rpm
二、安装mysql
[root@zabbix-server ~]# yum install -y mysql80-community-release-el8-5.noarch.rpm [root@zabbix-server ~]# yum -y install mysql-community-server 说明:如果执行yum -y install mysql-community-server出现“无法匹配的问题”可以先执行yum module disable mysql命令关闭centos8本地的mysql模块,字后再重新执行安装mysql的命令 [root@zabbix-server ~]# yum module disable mysql [root@zabbix-server ~]# yum -y install mysql-community-server 查看安装的版本 [root@zabbix-server ~]# mysql -V mysql Ver 8.0.33 for Linux on x86_64 (MySQL Community Server - GPL)
标签:33,community,server,zabbix,mysql8.0,mysql,yum,root,centos8 From: https://www.cnblogs.com/Mr-Ding/p/17498222.html