#环境:lamp(linux httpd mysql8.0 php)
#下载mysql8.0的rpm包,配置mysql源(离线包在此压缩包中,下面为wget在线安装rpm方法,离线安装方法为rpm -ivh mysql的rpm包路径)
wget https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm
yum -y install mysql80-community-release-el7-5.noarch.rpm
#下载mysql的rpm包和zabbix源码包到/tmp
wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.28-1.el7.x86_64.rpm-bundle.tar /tmp
wget https://cdn.zabbix.com/zabbix/sources/stable/6.0/zabbix-6.0.1.tar.gz /tmp
#安装mysql8.0
#解压mysql包
mkdir /usr/local/mysql
tar xf /tmp/mysql-8.0.28-1.el7.x86_64.rpm-bundle.tar -C /usr/local/mysql/
#进入/usr/local/mysql安装刚刚解压好的mysql rpm包
cd /usr/local/mysql/
rpm -ivh mysql-community-common-8.0.28-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-8.0.28-1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-community-libs-compat-8.0.28-1.el7.x86_64.rpm --force --nodeps
rpm -ivh my