liunx 安装 mysql 8.0 ,centos 7

下载地址:

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

结果:

 

posted @ 2022-08-23 21:28  青山下  阅读(248)  评论(0编辑  收藏  举报