centos7安装Mysql8.0.21
一、官网下载Mysqlhttps://dev.mysql.com/downloads/mysql/二、卸载mariadb通过 rpm -qa | grep mariadb 命令查看mariadb的安装包通过 rpm -e mariadb-libs-5.5.68-1.el7.x86_64 --nodeps 卸载mariadb三、创建Mysql文件夹,并传入下载的mysql安装包cd /user/local/mkdir mysqlcd mysql通过finals