下载地址:
MySQL :: Download MySQL Community Server
https://dev.mysql.com/downloads/mysql/
下载完整的打包程序,然后解压
解压命令:
tar -xvf mysql-8.0.30-1.el7.x86_64.rpm-bundle.tar
解压后,出现如下文件,即可进行安装:
安装顺序
rpm -ivh mysql-community-common-8.0.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-plugins-8.0.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-8.0.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-compat-8.0.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-devel-8.0.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-8.0.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-8.0.30-1.el7.x86_64.rpm
如果碰到类似以下错误,就搜索一下是否安装了mariadb相关的组件
warning: mysql-community-libs-8.0.30-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
mariadb-libs is obsoleted by mysql-community-libs-8.0.30-1.el7.x86_64
用如下命令搜索:
rpm -qa | grep mariadb
结果:
标签:8.0,x86,centos,30,64,liunx,mysql,rpm From: https://www.cnblogs.com/dj258/p/16617899.html